Reclaim policy and expansion
Four lifecycles, not one
Think of the Pod, the PVC, the PV and the underlying disk as separate resources. Removing a Pod does not normally remove an independently created PVC. Removing a PVC is a different action: after claim protection allows removal and the volume is released, reclaim policy controls subsequent storage handling. Controller-owned claims and special ephemeral patterns have other lifecycle rules. Always inspect the actual objects and ownership before a change.
Retain and Delete are different commitments
Retain leaves reclamation to an administrator after the claim is removed; the storage asset normally remains and the PV can enter Released. It is not automatically a clean Available volume for another team. Delete asks the supported backend integration to remove the PV and underlying storage asset. Dynamically provisioned PVs inherit the class reclaim policy at creation, with Delete as the class default when unspecified. Manually created PVs have their own policy. Do not assume changing a class retroactively changes existing PVs. Inspect persistentVolumeReclaimPolicy on the actual PV. Recycle is legacy and not a recommended new workflow.
Protection does not replace backup
Kubernetes uses protection finalizers to delay removal of PVCs in use and PVs still bound to claims. Additional deletion finalizers can coordinate deletion of backend assets for supported volumes. A terminating object is not proof that the data is safe or erased. Before approved cleanup, identify owners, inspect policy, record backend identity, verify a usable backup, and obtain explicit authorization. Do not remove finalizers as a generic fix. For Retain, a storage administrator must handle recovery, reuse or disposal, including data sanitization; retained storage can still incur costs.
Request more space through the claim
Assume catalog-data is already bound to the 5Gi study-disk-a and a compatible expansion-capable CSI driver and class are installed. To request 8Gi, change the existing PVC storage request, not the PV capacity field. This static desired-state example is not an executable resize instruction. The example class allows expansion, but a real driver and backend must also support it and have capacity. Editing the PV capacity first can interfere with the normal resize workflow. Kubernetes volume expansion grows storage; it does not shrink the existing volume.
apiVersion: v1kind: PersistentVolumeClaimmetadata: name: catalog-data namespace: storage-studyspec: storageClassName: study-zonal accessModes: - ReadWriteOnce volumeMode: Filesystem resources: requests: storage: 8GiVerify each resize stage
An accepted PVC edit is not evidence that the disk or filesystem has grown. Inspect PVC requested capacity, observed status capacity and conditions, then verify the backend and the filesystem or block device from an authorized application environment. Some combinations allow online filesystem expansion; others require a supported remount or restart. If a too-large request fails, a supported recovery workflow may allow a smaller retry request above current capacity; that is not shrinking the actual volume. Use a reviewed recovery plan instead of deleting the claim. The sample expansion-cases.json models eligibility only.
Prove persistence without risking a real disk
In an approved disposable local cluster with a verified driver and known reclaim policy, create a lab-owned claim and write a nonsecret marker from an approved writer. Record the marker and claim/PV identity, stop the writer cleanly, recreate only the Pod using the same PVC, and read the marker. Verify the retained data and clean up only approved lab resources after reviewing the reclaim policy and backup. This package has no real cluster. Its local marker simulation uses a temporary directory to model independent lifetimes; it cannot prove actual mount, crash durability or data recovery. Next: volume types and CSI.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Reclaim policy and expansion — knowledge check
Reason about persistent storage using synthetic Kubernetes examples.
Deleting an independent consumer Pod normally does what to its PVC?
What should Retain mean after claim removal?
Which policy matters when inspecting an already bound PV?
What field is normally edited to request volume growth?
The resize request is accepted. What evidence is still needed?