I have a few general questions regarding storage sharing. Consider the scenario that, one pod generates data and stores at binding PVC. What’s the best way for other pods to access that piece of data? My thought is that as long as pods in the same namespace they can bind to the same PVC with mode WRX. That’s possible but my following question is how can i set fine-grained rules for sharing the PVC. At the moment, I can’t set rules for PVC 1) so that it’s only consumed by certain pods; 2) allow different Write /Read permission for pods; 3) hide some directories from certain pods. I 'd like to know if this is a working progress on this or is PVC sharing NOT recommended for some reason? Is there a better way for achieving persistent storage sharing on k8s?
All responses are appreciated!