mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
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"] Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
32e53cf769
commit
67fa0ad662
@ -11,7 +11,8 @@ until kubelet --kubeconfig=/var/lib/kubeadm/kubelet.conf \
|
|||||||
--enforce-node-allocatable= \
|
--enforce-node-allocatable= \
|
||||||
--network-plugin=cni \
|
--network-plugin=cni \
|
||||||
--cni-conf-dir=/etc/cni/net.d \
|
--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
|
if [ ! -f /var/config/userdata ] ; then
|
||||||
sleep 1
|
sleep 1
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user