Kubernetes: Can we use multiple claims out of a persistent volume?

0 votes
can i use many claims out of a persistent volume? please explain.
Jul 16 in Kubernetes by Rhea
24 views

1 answer to this question.

0 votes

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
answered Jul 16 by Sirajul
• 17,910 points

Related Questions In Kubernetes

0 votes
1 answer

Can i configure my kubernetes pod to use multiple service accounts ?

A service account provides an identity for ...READ MORE

answered Jul 17 in Kubernetes by Sirajul
• 17,910 points
26 views
+1 vote
1 answer
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
289 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
1,601 views
+3 votes
1 answer
0 votes
1 answer

Configure a Kubernetes-pod to use persistent volume for storage.

The output shows that the PersistentVolume has ...READ MORE

answered Jul 23 in Kubernetes by Sirajul
• 17,910 points
276 views
0 votes
2 answers

Kubernetes: How to resize a Persistent Volume?

This feature is available in newer versions ...READ MORE

answered Aug 6 in Kubernetes by Sirajul
• 17,910 points
256 views