datashim icon indicating copy to clipboard operation
datashim copied to clipboard

I have mounted the s3 Bucket in kubernetes pods but non-root user can't able to access the bucket .

Open Moneshs opened this issue 1 year ago • 1 comments

Hi, As per the configuration, it is installed and I can able to mount the pods inside the container in Kubernetes but the problem is our containers are for non-root users. Now my application is not able to create or update the file inside the bucket due to the permission my bucket folder has root user and root group permission.

Moneshs avatar Oct 16 '23 10:10 Moneshs

I was able to get s3 buckets working with non root user, created a non root user (Iam User)and then set permissions -> chose "Attach policies directly" and selected FullS3Access. From the pods, could read, write and delete objects to s3 buckets. Then once the user is created, selected the user and created access key from security credentials. Hope this helps

rrehman-hbk avatar Dec 14 '23 06:12 rrehman-hbk