1.

Can we use many claims out of a persistent volume? Explain?

Answer»

The MAPPING between persistentVolume and persistentVolumeClaim is always ONE to one. Even When you delete the claim, PersistentVolume STILL remains as we SET persistentVolumeReclaimPolicy is set to Retain and It will not be reused by any other claims. Below is the spec to create the Persistent Volume.

apiVersion: v1 kind: PersistentVolume METADATA: name: mypv spec: capacity: storage: 5Gi volumeMode: Filesystem accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain


Discussion

No Comment Found

Related InterviewSolutions