Question 830
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A reviewed StatefulSet manifest ./storage/invoice-api-statefulset.yaml gives app invoice-api a per-replica volumeClaimTemplate in namespace ledger. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model. This explains the stated condition. The corresponding action is: Run kubectl -n ledger apply -f ./storage/invoice-api-statefulset.yaml after confirming the StatefulSet's Service and StorageClass prerequisites. The direct acceptance evidence is: Run kubectl -n ledger get statefulset invoice-api and inspect generated PVCs and their Bound status.
Incorrect Answers
The default class admission behavior can assign storageClassName to new PVCs that omit it; concurrent defaults create ambiguous behavior. That explanation applies to a different technical failure. Here the controlling principle is: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model.
The offered statement is true for this other mechanism: StorageClasses specify provisioning behavior separately from an individual claim, including binding policy and reclaim defaults. It does not explain the facts described here, which follow from: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model.
This principle describes a separate cause: VolumeSnapshot is a CSI extension object rather than a core PVC backup; controller and driver capabilities determine success. The reported condition is governed by: StatefulSets give stable identities and can generate per-Pod PVCs; a shared Deployment volume would not automatically provide this ownership model. The two mechanisms should not be conflated.