AI-generated editorial illustration; not a documentary photograph.
Kubernetes v1.37 promotes the PersistentVolumeClaimUnusedSinceTime feature gate to Beta and enables it by default. The PVC protection controller now adds an Unused condition to every PersistentVolumeClaim, allowing administrators to see whether a running pod references the claim and when that status last changed.
Native Usage Status
Previously, determining whether a PVC remained in use could require cross-referencing pods, PersistentVolumes and claims or maintaining custom monitoring. Kubernetes now exposes that information in PVC status: Unused=True means no qualifying pod currently references the claim, while Unused=False indicates that at least one does.
How Pods Are Counted
The condition reflects pod references rather than storage activity. Pending pods count as users even when they cannot be scheduled, because they still express an intent to mount the volume. Pods in Succeeded or Failed phases do not count. When several pods reference one PVC, it becomes unused only after the final non-terminated pod is removed or finishes.
Finding Idle Claims
The standard lastTransitionTime field records when the Unused condition changes. When it switches from False to True, the timestamp indicates when the claim became idle. Administrators can query PVCs across namespaces with kubectl and jq, then filter by elapsed time to identify claims that have remained unused for a chosen period.
This feature does not automatically delete a PVC. Kubernetes retains claims after associated pods are removed to reduce the risk of accidental data loss, so cleanup policies and deletion decisions remain the administrator's responsibility.
Beta Changes
Kubernetes v1.36 introduced PersistentVolumeClaimUnusedSinceTime as an Alpha feature that required explicit activation. In v1.37, the Beta implementation is enabled by default and has end-to-end test coverage. The Kubernetes project says a future move to General Availability will depend on feedback and adoption.
Source: Kubernetes v1.37: Tracking When a PersistentVolumeClaim Was Last Used (Beta)

Leave a Reply