Enable kubelet service to be monitored by pmond
Generate/clear kubelet.pid file at start/stop of kubelet service Story: 2002843 Task: 29216 Change-Id: I41206c7ea14d79b5d0cbca945e7a6488eda9b7bb Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
e76af6d929
commit
2b5e9fe31a
@ -9,6 +9,8 @@ EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env
|
|||||||
EnvironmentFile=-/etc/sysconfig/kubelet
|
EnvironmentFile=-/etc/sysconfig/kubelet
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
|
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
|
||||||
|
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/kubelet.pid;'
|
||||||
|
ExecStopPost=/bin/rm -f /var/run/kubelet.pid
|
||||||
Restart=always
|
Restart=always
|
||||||
StartLimitInterval=0
|
StartLimitInterval=0
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
Loading…
Reference in New Issue
Block a user