liveBook · Manning

Claimref

As explained in Kubernetes in Action, Second Edition

claimRef is the PersistentVolume specification field that records the PersistentVolumeClaim to which the volume is associated.

claimRef is a PersistentVolume specification field that records the PersistentVolumeClaim associated with the volume. It identifies the claim currently binding the volume. section 10.3.3

Releasing a volume

After a claim releases a manually provisioned PersistentVolume, remove claimRef from the PersistentVolume specification to make the volume available again. Kubernetes can then show the volume as Available and bind it to a suitable claim. section 10.3.3

How Kubernetes in Action, Second Edition covers it

How deep it goes
Explains claimRef through release and rebinding, but does not detail its complete API schema or controller implementation.
Examples
Uses a manually provisioned local disk, the quiz-data-local claim, and kubectl output showing Released, Available, and Bound states.
What it assumes
Assumes familiarity with PersistentVolumes, PersistentVolumeClaims, kubectl, and binding states.
What you can do after
Operate/configure a manually provisioned PersistentVolume by removing claimRef and verifying its subsequent status.
How it connects
Connects PersistentVolume, PersistentVolumeClaim, volume binding, release, reclaim policy, and deletion behavior.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes in Action, Second Edition. The section links point to the parts of the book it draws on.