mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
kubernetes: Use /etc/kubernetes rather than /var/lib/kubelet
This is a bind mount, but /etc/kubernetes is the path formally expected/create by kubeadm. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
6e58dc2940
commit
9a99164cf7
@ -11,7 +11,7 @@ if [ -e /etc/kubelet.sh.conf ] ; then
|
||||
. /etc/kubelet.sh.conf
|
||||
fi
|
||||
|
||||
conf=/var/lib/kubeadm/kubelet.conf
|
||||
conf=/etc/kubernetes/kubelet.conf
|
||||
|
||||
if [ -f "${conf}" ] ; then
|
||||
echo "kubelet.sh: kubelet already configured"
|
||||
@ -43,7 +43,7 @@ echo "kubelet.sh: ${conf} has arrived" 2>&1
|
||||
|
||||
exec kubelet --kubeconfig=${conf} \
|
||||
--require-kubeconfig=true \
|
||||
--pod-manifest-path=/var/lib/kubeadm/manifests \
|
||||
--pod-manifest-path=/etc/kubernetes/manifests \
|
||||
--allow-privileged=true \
|
||||
--cluster-dns=10.96.0.10 \
|
||||
--cluster-domain=cluster.local \
|
||||
|
Loading…
Reference in New Issue
Block a user