kubernetes: allow users to add kubelet options by overriding the command
For example to tell kubelet to use cri-containerd:
command: ["/usr/bin/kubelet.sh", "--container-runtime=remote", "--container-runtime-endpoint=unix:///var/run/cri-containerd.sock"]
@@ -11,7 +11,8 @@ until kubelet --kubeconfig=/var/lib/kubeadm/kubelet.conf \
--enforce-node-allocatable= \
--network-plugin=cni \
--cni-conf-dir=/etc/cni/net.d \
- --cni-bin-dir=/opt/cni/bin ; do
+ --cni-bin-dir=/opt/cni/bin \
+ $@; do
if [ ! -f /var/config/userdata ] ; then
sleep 1
else
