Tell systemd to keep trying to restart kubelet without limit. Without this change at some stage systemd will stop trying to restart kubelet and mark it failed. These are the settings we're using elsewhere (e.g. Docker)
15 lines
303 B
Desktop File
15 lines
303 B
Desktop File
[Unit]
|
|
Description=Kubernetes Kubelet Server
|
|
Documentation=https://github.com/kubernetes/kubernetes
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/sysconfig/kubelet
|
|
ExecStart=/usr/local/bin/kubelet "$DAEMON_ARGS"
|
|
Restart=always
|
|
RestartSec=2s
|
|
StartLimitInterval=0
|
|
KillMode=process
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|