christian-schlichtherle / synology-csi-chart

A Helm chart for installing the Synology CSI Driver in a Kubernetes cluster.
Apache License 2.0
51 stars 21 forks source link

How to allow volumeMounts to allow non-root containers to write to them? #14

Closed chrisbsmith closed 11 months ago

chrisbsmith commented 11 months ago

This is just a question, and probably better for a discussion; but how have you gotten the CSI driver to allow non-root containers to write to the mount point? I have tried setting the securityContext but without any luck.

chrisbsmith commented 11 months ago

Well, I found this on the next google after I opened this issue and it appears to be working.

https://github.com/kubernetes/examples/issues/260#issuecomment-534160265

ericchu94 commented 6 months ago

fyi I was able to get fsGroup working by specifying fsType in my StorageClass

christian-schlichtherle commented 2 months ago

For SMB you can add the mount option noperm to the storage class. No init container required.