This question follows on from this one regarding PV, PVC's and shared volumes.
I'm trying to get my head around what the best practices are regarding the provisioning of PV's for a NFS shared volume in a K8/OpenShift cluster.
As an example, let's say I have a 100GB NFS volume shared at /storage
.
What is the recommended way to carve that volume up as PV's?
- Create a group of say 2 x 20GB (pvlarge01 - 02) and 6 x 10GB (pvsmall01 - 06) PV's which can support disparate large and small claims
- or, create one big PV of 100GB capacity and then just have one PVC that get's shared among pods (this feels wrong...)
- or ?
The fact that you cannot target PVC's to specific PV's (well, until PersistentVolumeSelector is available) freaks me out a bit, in that my natural inclination is to want to target PVC's to specific PV's based on application need.
Would love to hear how the community is handling this in production environments?