alpine-overlay/kubezero/kubernetes/kubelet.initd

30 lines
823 B
Plaintext
Raw Normal View History

2021-11-12 17:28:59 +00:00
#!/sbin/openrc-run
# Copyright 2016-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
supervisor=supervise-daemon
description="Kubelet, a Kubernetes node agent"
2023-08-18 15:17:00 +00:00
# do not start without kubezero node config in place
required_files="/var/lib/kubelet/kubeadm-flags.env /var/lib/kubelet/config.yaml"
2023-10-05 16:46:40 +00:00
# Restart forever just like systemd upstream
2023-08-18 15:17:00 +00:00
respawn_max=0
2023-10-05 16:46:40 +00:00
respawn_delay=5
2023-08-18 15:17:00 +00:00
2021-11-12 17:28:59 +00:00
if [ -e /var/lib/kubelet/kubeadm-flags.env ]; then
. /var/lib/kubelet/kubeadm-flags.env;
fi
command="/usr/bin/kubelet"
command_args="${command_args} ${KUBELET_KUBEADM_ARGS}"
pidfile="${KUBELET_PIDFILE:-/run/${RC_SVCNAME}.pid}"
: ${output_log:=/var/log/$RC_SVCNAME/$RC_SVCNAME.log}
: ${error_log:=/var/log/$RC_SVCNAME/$RC_SVCNAME.log}
depend() {
2023-10-05 16:46:40 +00:00
after net cloudbender
need cgroups
want containerd crio
2021-11-12 17:28:59 +00:00
}