Hands-on Lab·Certified Kubernetes Administrator
Access Modes and Reclaim Policies
Ask a node-local provisioner for ReadWriteMany and watch the claim hang. Then delete two claims: one volume is destroyed, the other becomes Released and refuses every new claimant until you clear one field by hand.
Storage Guide 70 of 103 Intermediate
- Kubernetes1.36.4
- Cluster4 nodes
- Runtimecontainerd 2.2.6
- CNICalico v3.32.1
- TimeAbout 35 min
Which access modes work depends entirely on the backend. The Released-blocks-rebinding behaviour does not.
- Provisionerrancher.io/local-path
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| CKA1001 | 192.168.0.175 | Ubuntu 26.04 LTS | Control Plane Node | 2 Core | 4 GB | 50 GB |
| CKA1001-NODE01 | 192.168.0.176 | Ubuntu 26.04 LTS | Worker Node | 2 Core | 4 GB | 50 GB |
| CKA1001-NODE02 | 192.168.0.177 | Ubuntu 26.04 LTS | Worker Node | 2 Core | 4 GB | 50 GB |
| CKA1001-NODE03 | 192.168.0.178 | Ubuntu 26.04 LTS | Worker Node | 2 Core | 4 GB | 50 GB |
This guide includes
Use this when a claim hangs, or when deleting one takes the data with it. This matters because an access mode is a request the backend may be unable to honour, and the reclaim policy decides whether a deleted claim is recoverable at all.
- asking a node-local provisioner for ReadWriteMany and watching the claim simply hang
- seeing
reclaimPolicy: Deleteremove the volume, and the data, along with the claim - using Retain instead, and finding the volume Released rather than deleted
- discovering that a Released volume refuses every new claimant, even a perfectly matching one
Before you start
- The PersistentVolumes and claims guide, for the binding rules access modes participate in.
- The dynamic provisioning guide, for where
reclaimPolicy: Deletecomes from. - Permission to patch PersistentVolumes, which is a cluster-scoped operation.
-
Access modes, and asking for one the backend cannot do
-
reclaimPolicy Delete means the data is gone
-
reclaimPolicy Retain: Released, not deleted
-
A Released volume refuses every new claimant