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
33 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
• 37,480 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
• 37,480 points
170 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
392 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
2,985 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
• 37,480 points
322 views
0 votes
3 answers

Kubernetes: How to resize a Persistent Volume?

That issue happened to me when I ...READ MORE

answered Oct 1 in Kubernetes by Gon
• 180 points
448 views