Can I reuse same Persistent Volume for another PersistentVolumeClaim with an access mode of `ReadWriteOnce`?

Viewed 53

I have an use case, where I want a PV to be used by a single pod at any give time and then once the pods are deleted, the same PV should get used by another pod. Is there a way to achieve this in k8s? Note:- My pods are sort lived (may be stays for around 60-90 mins)

1 Answers

Can I reuse same Persistent Volume for another PersistentVolumeClaim with an access mode of ReadWriteOnce?

  • What really serves your requirement is "Using a RWO Persistent Volume Claim with different pods (one pod at a time)" , Yes it is possible.

  • When a POD gets deleted which was accessing the PVC , Then Same PVC can be attached to a different POD.

Related