We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's a stable feature of kubernetes since 1.23: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods, and very useful, especially when you run containers as non-root.
This feature does not seem to be supported by nfs-subdir-external-provisioner.
Here is a test-case:
touch test
ls -ln test
Example manifests:
apiVersion: apps/v1 kind: Deployment metadata: name: testcase-fsgroup spec: selector: matchLabels: app: testcase-fsgroup replicas: 1 template: metadata: labels: app: testcase-fsgroup spec: securityContext: fsGroup: 70 fsGroupChangePolicy: "Always" containers: - image: nginx:latest name: nginx volumeMounts: - mountPath: "/usr/share/nginx/html" name: testcase-fsgroup volumes: - name: testcase-fsgroup persistentVolumeClaim: claimName: testcase-fsgroup --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: testcase-fsgroup spec: accessModes: - ReadWriteOnce storageClassName: nfs-client resources: requests: storage: 10Mi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's a stable feature of kubernetes since 1.23: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods, and very useful, especially when you run containers as non-root.
This feature does not seem to be supported by nfs-subdir-external-provisioner.
Here is a test-case:
touch test
, see its owner/group withls -ln test
ls -ln test
if the group has been changed to the one specified in fsGroup (70 in my example below)Example manifests:
The text was updated successfully, but these errors were encountered: