Kubernetes: how to set VolumeMount user group and file permissions

The Pod Security Context supports setting an fsGroup, which allows you to set the group ID that owns the volume, and thus who can write to it. The example in the docs: apiVersion: v1 kind: Pod metadata: name: hello-world spec: containers: # specification of the pod’s containers # … securityContext: fsGroup: 1234 More info on … Read more