mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-29 08:42:01 +00:00
kubernetes: add basic cni plugins dynamically
This avoids a slightly tricky sequence of nested bind mounts by just unpacking a tarball on boot (with a stamp so it only happens once). Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
mount --bind /opt/cni /var/lib/cni/opt
|
||||
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
|
||||
touch /var/lib/cni/.opt.defaults-extracted
|
||||
fi
|
||||
until kubelet --kubeconfig=/var/lib/kubeadm/kubelet.conf \
|
||||
--require-kubeconfig=true \
|
||||
--pod-manifest-path=/var/lib/kubeadm/manifests \
|
||||
|
Reference in New Issue
Block a user