A Retain policy preserves a PersistentVolume and its underlying storage after the associated PersistentVolumeClaim is deleted or released. It is typical for statically provisioned volumes, unlike dynamically provisioned volumes that commonly use Delete. section 10.3.3
A retained volume follows this lifecycle:
- Deleting the claim changes the PersistentVolume from Bound to Released rather than Available. section 10.3.3
- A new claim does not automatically bind to the Released volume because its existing data may require review or removal. section 10.3.3
- Making the volume reusable requires deleting and recreating the PersistentVolume object; the object points to storage rather than containing its data. section 10.3.3
$ kubectl get pv local-disk-on-my-node NAME RECLAIM POLICY STATUS CLAIM local-disk-on-my-node Retain Released default/quiz-data-local
Inspect the reclaim policy, Released status, and former claim association with kubectl. section 10.3.3
