rook / nfs

Rook storage provider for NFS
Apache License 2.0
31 stars 10 forks source link

Description Mount failed. Permission denied #22

Open jixiangcheng opened 3 years ago

jixiangcheng commented 3 years ago

I created the Storageclass using rook NFS I created RabbitMQ using rook NFS Storageclass, Creation failed, prompting no permission to write to the mount point directory After I created the PVC, THE permission to view the directory created in NFS Server is 700,Owner group :root, owner :root Rabbitmq is started as a normal user and has no write permission to the directory created by rook NFS

图片

hehesky commented 2 years ago

Hitting a similar issue here. Rook NFS should not assume that the consumer pod is running as root.

tlandschoff-scale commented 2 years ago

Count me in on this issue. I am trying to run a helm chart developed for Amazon EKS locally on a k3s cluster. rook-nfs provisions the persistentvolume just fine, but as the containers are not running as root, they can't access any data...

My workaround was to add an initContainer that runs as root and changes permission and ownerships for the volume.