awslabs / mountpoint-s3-csi-driver

Built on Mountpoint for Amazon S3, the Mountpoint CSI driver presents an Amazon S3 bucket as a storage volume accessible by containers in your Kubernetes cluster.
Apache License 2.0
153 stars 18 forks source link

volume is not accessible from the container #134

Closed Ognian closed 5 months ago

Ognian commented 5 months ago

/kind bug What happened? When successfully mounted, the s3 volume is not accessible from the container and shows permission denied:

image

When accessing the mounted directory on the host (/var/lib/kubelet/pods/3e9a54c9-04b4-421b-a4e0-4d981e8c8139/volumes/kubernetes.io~csi/s3-pv/mount) everything is fine (we can read and write).... Any ideas?

What you expected to happen?

How to reproduce it (as minimally and precisely as possible)?

Anything else we need to know?:

Environment

jjkr commented 5 months ago

Is your container running as a non-root user? If so, you will need to add the allow-other mount option.

This issue for running as a non-root user has similar behavior and some more details: https://github.com/awslabs/mountpoint-s3-csi-driver/issues/118

Ognian commented 5 months ago

--allow-other is indeed the solution. Thanks a lot Ognian