-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Add support for OnRootMismatch fsGroupChangePolicy #235
Comments
You mention this is a breaking change. If this is applied to something that doesn't have the |
One breaking case would be that another process mounts the same volume or a subdir with a different permission set and changes file ownership in places that Let's say someone uses |
What about someone using efs-provisioner, or ceph provisioner, or portworx, or open-nfs. Some other storage provisioner? |
Workloads using ReadWriteMany volumes with a lot of files (multiple 100k) have long startup times with some storage providers (e.g. csi-driver-nfs). This happens because without securityContext.fsGroupChangePolicy set, the default for many CSI drivers is to always let the kubelet change the permissions and ownership of all files in a volume (kubernetes.io).
Setting
securityContext.fsGroupChangePolicy: OnRootMismatch
will fix the file ownership and permissions only if there is a root mismatch which should only happen during initial provisioning or after a change to thefsGroup
.Ideally this is set for all workloads, but only if a feature flag is enabled (opt-in) since this is a breaking change.
The text was updated successfully, but these errors were encountered: