CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

Reclaim Policies and Recovering a Released Volume

The emergency lever for a volume you are about to delete, and the four-step recovery that gets the data back afterwards - ending with the file read out of the rebound volume.

Storage Guide 71 of 103 Advanced

Written against the versions above. PV names are generated by the provisioner. The phases and the claimRef behaviour are the same on any driver.

Four nodes with the CSI hostpath driver, whose StorageClass defaults to Delete.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. A dynamically provisioned volume, and the policy it inherits

  2. Change the policy on the volume that already exists

  3. Delete the claim and watch what survives

  4. Making it usable again

  5. Is the data actually there

Official sources