Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

how do i change the file system mounted via VCP volume, as by default it is creating 700, need to change it for non root user #512

Open
podman2020 opened this issue Oct 13, 2018 · 2 comments

Comments

@podman2020
Copy link

no
Is this a BUG REPORT or FEATURE REQUEST?:
Feature Request

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
default filesystem is 700 and owned by root.
What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
how do i change the permissions at storage level
Environment:

  • Kubernetes version (use kubectl version): 1.11.2
  • Cloud provider or hardware configuration: vsp
  • OS (e.g. from /etc/os-release):rhel7,5
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@erSitzt
Copy link

erSitzt commented Feb 11, 2019

Same Problem here.
Container starts process as non-root user and fails accessing its data directory.

Is this a problem with settings mount options for vsphere storage or is it a config setting needed in kubernetes ?

regards
Dennis

@divyenpatel
Copy link

@amedisetti @erSitzt

Have you tried securityContext? https://kubernetes.io/docs/tasks/configure-pod-container/security-context/

spec:
  securityContext:
    runAsUser: 1000
    fsGroup: 2000

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

3 participants