Kubernetes ConfigMap volume doesn't create file in container

后端 未结 1 367
忘了有多久
忘了有多久 2020-12-11 04:51

k8s 1.2 deployed locally, single-node docker

Am I doing something wrong? Is this working for everyone else or is something broken in my k8s deployment?

Foll

相关标签:
1条回答
  • 2020-12-11 05:14

    Thanks to @Paul Morie for helping me diagnose and fix this (from github issue):

    bingo, the mount propagation mode of /var/lib/kubelet is private. try changing the mount flag for the kubelet dir to -v /var/lib/kubelet:/var/lib/kubelet:rw,shared

    I also had to change MountFlags=slave to MountFlags=shared in my docker systemd file.

    0 讨论(0)
提交回复
热议问题