Question 840
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: A reviewed StatefulSet manifest ./storage/dispatch-api-statefulset.yaml gives app dispatch-api a per-replica volumeClaimTemplate in namespace fulfillment. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Plan StatefulSet volume retention and recovery separately from controller deletion. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment apply -f ./storage/dispatch-api-statefulset.yaml after confirming the StatefulSet's Service and StorageClass prerequisites. The relevant mechanism is: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model.
Incorrect Answers
That safeguard is relevant to: PVC volumeName prebinding requests a specific PV but does not bypass binding compatibility and availability checks. The current failure instead follows from: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model. Its prevention measure is “Plan StatefulSet volume retention and recovery separately from controller deletion”.
This routine guards against another mechanism: Pod volume definitions and volumeMount references must agree; a valid PVC cannot help a container with an invalid mount path or volume name. The recurring exposure in the current case is: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model. The matching preventive check is “Plan StatefulSet volume retention and recovery separately from controller deletion”.
The suggested review tracks a different technical risk: VolumeSnapshot is a CSI extension object rather than a core PVC backup; controller and driver capabilities determine success. Here the sustained control must address: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model. Choose “Plan StatefulSet volume retention and recovery separately from controller deletion”.