Multiple pods to multiple PVCs attached to subfolders

10/25/2019

We have created a NFS share that will have multiple folders like - /tmp, /tmp/sched, /tmp/mst

i think we need to create multiple PV and PVC, each pointing to the corresponding subfolder.

**PV1**
nfs: 
path: /tmp/sched -- point to subfolder

**PV2**
nfs:
path: /tmp/mst -- point to a different subfolder

Pod1 will use PVC1 pointing to PV1 attached to subfolder /tmp/sched Pod2 will use PVC2 pointing to PV2 attached to subfolder /tmp/mst

Please suggest if there is any better way

-- sam
kubernetes-pvc
openshift

0 Answers