Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

ConfigMap backed volumes mounted as root #28

Open
namliz opened this issue Aug 8, 2016 · 1 comment
Open

ConfigMap backed volumes mounted as root #28

namliz opened this issue Aug 8, 2016 · 1 comment

Comments

@namliz
Copy link
Contributor

namliz commented Aug 8, 2016

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.

@andrewgdavis
Copy link

andrewgdavis commented Aug 18, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants