-
Notifications
You must be signed in to change notification settings - Fork 123
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
Added support for non-root EFS files ownership #268
Conversation
3259bb4
to
13c6243
Compare
@mbaijal can you look into this one? @AlexandreBrown thanks for the contribution. Could you explain how you found the default UID and GID of this user? |
Sure, here are some resources that I visisted to learn more about what the UID & GID should be for Kubeflow Notebooks : It's also mentionned in some issues (eg: kubeflow/kubeflow#5808) I also tested it on a fresh install by doing Also I noticed that in Kubeflow notebook base image, we set an environment variable to |
After further investigation I discovered that the parameters are ignored. It seems like even though we can specify the Any idea why ? Might be related : I do not fully understand why but non-root user can read/write EFS volumes even as non-root. apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: efs-sc
mountOptions:
- tls
parameters:
directoryPerms: '700'
fileSystemId: fs-XXXXXX
gid: "100"
uid: "1000"
provisioningMode: efs-ap
provisioner: efs.csi.aws.com
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true This means that the issue about git complaning that the repo folder is not owned by the user is still present but at least it's not a blocker, users can still read write. Will continue to investigate, let me know if you know why and how we can make sure files that are created are owned by the selected Created an issue to get more insight: kubernetes-sigs/aws-efs-csi-driver#726 |
UPDATESorry for the delay @surajkota @mbaijal , Using Result after setting up EFS with driver version We can see the file system now correctly assigns the |
Will improve doc for manual setup to mention that you need to replace the place holders for dynamic provisioning etc. |
Thanks a lot @AlexandreBrown for this effort and investigation. I will look into these changes and also test them from my side before approving this PR. Apologies for the delay on this. |
website/content/en/docs/deployment/add-ons/storage/efs/guide.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
* Updated documentation about EFS permissions * Added gid & uid to auto efs script * Updated EFS CSI driver to v1.4.0 * feat/267 Updated documentation about EFS & added default value for uid & gid
* Updated documentation about EFS permissions * Added gid & uid to auto efs script * Updated EFS CSI driver to v1.4.0 * feat/267 Updated documentation about EFS & added default value for uid & gid
* Set s3 endpoint in workflow-controller-configmap from pipeline-install-config (#291) * Added support for non-root EFS files ownership (#268) * Updated documentation about EFS permissions * Added gid & uid to auto efs script * Updated EFS CSI driver to v1.4.0 * feat/267 Updated documentation about EFS & added default value for uid & gid * Update kserve.md (#304) * update: Adding a missing preposition in cognito guide (#307) The preposition "to" was missing in cognito guide * add cdk support for private subnets detection (#295) Co-authored-by: rrrkharse <[email protected]> Co-authored-by: Alexandre Brown <[email protected]> Co-authored-by: Gitesh Shinde <[email protected]> Co-authored-by: Jobin <[email protected]> Co-authored-by: Theofilos Papapanagiotou <[email protected]>
Which issue is resolved by this Pull Request:
Resolves #267
Description of your changes:
Added
uid
&gid
parameters for the automated script to setup EFS for non-root user.Testing:
v1.4.1-aws-b1.0.0
on a new eks cluster.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.