Interview Prep/Kubernetes/Configuration & Storage

Explain PV reclaim policies.

IntermediateConceptConfiguration & Storage
Answer

Delete removes the backing storage when the PVC is deleted (default for dynamically provisioned volumes); Retain keeps the PV and data for manual recovery, leaving it Released and not reusable until an admin clears the claimRef. Recycle is deprecated.

kubectl patch pv pvc-123 -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
All Kubernetes questions Roadmap: Kubernetes core

More on Configuration & Storage