mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
Add capability to not start kubelet depending on either a configuration file or an environment variable.
Signed-off-by: pgayvallet <pierre.gayvallet@gmail.com>
This commit is contained in:
parent
2902764b87
commit
ba8e01bf13
@ -2,6 +2,15 @@
|
||||
# Kubelet outputs only to stderr, so arrange for everything we do to go there too
|
||||
exec 1>&2
|
||||
|
||||
if [ -f /var/config/kubelet/disabled ] ; then
|
||||
echo "kubelet.sh: /var/config/kubelet/disabled file is present, exiting"
|
||||
exit 0
|
||||
fi
|
||||
if ! [ -z "$KUBELET_DISABLED" ] ; then
|
||||
echo "kubelet.sh: KUBELET_DISABLED environ variable is set, exiting"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! -e /var/lib/cni/.opt.defaults-extracted ] ; then
|
||||
mkdir -p /var/lib/cni/opt/bin
|
||||
tar -xzf /root/cni.tgz -C /var/lib/cni/opt/bin
|
||||
|
Loading…
Reference in New Issue
Block a user