Pregunta de Storage Management #019e3a4f
Manual reclamation policy of a PVC resource is known as:
claimRef
Delete
Retain
Recycle
Explicación Oficial / Explicaciones de la Comunidad
The manual reclamation policy for a PersistentVolumeClaim (PVC) resource in Kubernetes is known as Retain. This policy ensures that when a PVC is deleted, the underlying PersistentVolume (PV) and its data are not automatically removed. Instead, the PV remains in a 'Released' state, allowing an administrator to manually handle the data and reuse or delete the PV as needed.
How it Works
In Kubernetes, when a PVC is bound to a PV, the PV's reclaim policy determines what happens to the PV after the PVC is deleted. The three reclaim policies are:
- Retain: The PV is not deleted; it remains in the cluster with its data intact. The PV enters a 'Released' state and cannot be bound to a new PVC until the administrator manually clears the
claimRefand recycles the volume. - Delete: The PV and its underlying storage (e.g., cloud disk) are automatically deleted when the PVC is removed.
- Recycle: (Deprecated) The PV is scrubbed (e.g.,
rm -rf /volume/*) and made available for a new PVC.
Why Retain is Correct
The question asks for the "manual" reclamation policy. Among the options, Retain is the only policy that requires manual intervention by an administrator to reclaim the storage. The other options either automate deletion (Delete) or automated recycling (Recycle). The claimRef is not a reclaim policy; it is a field in the PV spec that references the PVC that bound to it.
Why Other Options are Incorrect
- claimRef: This is a reference field in the PV object that points to the PVC that has bound to it. It is not a reclaim policy.
- Delete: This is an automated policy where the PV and its storage are deleted automatically when the PVC is removed. It does not require manual action.
- Recycle: This is an automated (and deprecated) policy that scrubs the volume and makes it available for reuse. It does not require manual intervention.
In summary, Retain is the correct answer because it is the only policy that leaves the PV and its data intact for manual reclamation by an administrator.