You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to mount a configmap as a volume into my containers and also change user owner top 1000 and file permissions to 0600. I tried doing this by using defaultMode to set the file permissions and fsGroup to set the owner:
But this is not working because the file permissions is not changed. However, defaultMode do work if fsGroup is missing. Could this be related? kubernetes/kubernetes#57935
Any idea how could I change the owner of a file and also the file permissions of a configmap mounted as a volume?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear rke2 community,
My environment:
I need to mount a configmap as a volume into my containers and also change user owner top 1000 and file permissions to 0600. I tried doing this by using
defaultMode
to set the file permissions andfsGroup
to set the owner:and
But this is not working because the file permissions is not changed. However,
defaultMode
do work iffsGroup
is missing. Could this be related? kubernetes/kubernetes#57935Any idea how could I change the owner of a file and also the file permissions of a
configmap
mounted as a volume?Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions