Fix kubelet container with alternate Docker data paths
Some time ago I think the hardcoded `/var/lib/docker` was required, but kubelet running in a container has been aware of the Docker path since at least as far back as k8s 1.6. Without this change, you see a large number of errors in the kubelet logs if you installed with a non-default `docker_daemon_graph`
This commit is contained in:
parent
c0e989b17c
commit
0c824d5ef1
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
-v /lib/modules:/lib/modules:ro \
|
-v /lib/modules:/lib/modules:ro \
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
-v /sys:/sys:ro \
|
-v /sys:/sys:ro \
|
||||||
-v {{ docker_daemon_graph }}:/var/lib/docker:rw \
|
-v {{ docker_daemon_graph }}:{{ docker_daemon_graph }}:rw \
|
||||||
-v /var/log:/var/log:rw \
|
-v /var/log:/var/log:rw \
|
||||||
-v /var/lib/kubelet:/var/lib/kubelet:shared \
|
-v /var/lib/kubelet:/var/lib/kubelet:shared \
|
||||||
-v /var/lib/cni:/var/lib/cni:shared \
|
-v /var/lib/cni:/var/lib/cni:shared \
|
||||||
|
|
Loading…
Reference in a new issue