cncf/demo

ConfigMap backed volumes mounted as root

Opened this issue · 1 comments

Ref: kubernetes/kubernetes#2630, kubernetes/kubernetes#11319.

So lets say you have some configuration files and you throw them into a ConfigMap.
The pod you spin up mounts a volume and these files happily appear in, for example: /etc/config.

Great. Except that volume was mounted as root and your app demands different permissions to read those files.

The workaround suggested so far is to have a wrapper script do chown'ing -- clearly hackish.

I ran into this problem also. The work around was to make use of InitContainers to perform a git clone.

for details see kubernetes/minikube#482