Can sub folder of a persistent volume claim have different permissions per claiming pod?

1/26/2021

I'v got multiple pods that mounts the same persistent volume (let us call it shared/). I would like to set different permissions for shared/<some sub folder> in different pods. Can I do something like this?

I know I can set the group id of the entire volume using kubernetes fsgroup but I would like to control permissions of sub folders from within the mounting pod.

-- barPerez
kubernetes

0 Answers