mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
Setting back the previous settings and added cni-plugins to depends. Without these settings, kubeadm init fails to initalize the cluster.
23 lines
643 B
Text
Executable file
23 lines
643 B
Text
Executable file
#!/sbin/openrc-run
|
|
# Copyright 2016-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description="Kubelet, a Kubernetes node agent"
|
|
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
user=${user:-root}
|
|
group=${group:-root}
|
|
|
|
if [ -e /var/lib/kubelet/kubeadm-flags.env ]; then
|
|
source /var/lib/kubelet/kubeadm-flags.env;
|
|
fi
|
|
|
|
command="/usr/bin/kubelet"
|
|
command_args="${command_args} ${KUBELET_KUBEADM_ARGS}"
|
|
command_background="true"
|
|
start_stop_daemon_args="--user ${user} --group ${group} \
|
|
--stdout /var/log/kubelet/${RC_SVCNAME}.log \
|
|
--stderr /var/log/kubelet/${RC_SVCNAME}.log"
|
|
|
|
depend() {
|
|
after net
|
|
}
|