Question 800
At Horizon observability, in a disposable simulated environment during a monitored release window: Pod metrics-api in namespace observability is Pending or failing after a PVC attachment change; inspect actual volume and mount references before modifying claims. 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
Add Pod schema checks and mount-level acceptance tests to storage workload releases. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability describe pod metrics-api and compare volume claim names with container mount paths. The relevant mechanism is: Pod volume definitions and volumeMount references must agree; a valid PVC cannot help a container with an invalid mount path or volume name.
Incorrect Answers
This routine guards against another mechanism: StorageClasses specify provisioning behavior separately from an individual claim, including binding policy and reclaim defaults. The recurring exposure in the current case is: Pod volume definitions and volumeMount references must agree; a valid PVC cannot help a container with an invalid mount path or volume name. The matching preventive check is “Add Pod schema checks and mount-level acceptance tests to storage workload releases”.
The suggested review tracks a different technical risk: PVC expansion requests larger provisioned storage without deleting the claim; the CSI driver and filesystem may require additional expansion steps. Here the sustained control must address: Pod volume definitions and volumeMount references must agree; a valid PVC cannot help a container with an invalid mount path or volume name. Choose “Add Pod schema checks and mount-level acceptance tests to storage workload releases”.
This routine guards against another mechanism: StorageClass provisioner names must correspond to installed CSI provisioning components; the class object alone cannot create storage. The recurring exposure in the current case is: Pod volume definitions and volumeMount references must agree; a valid PVC cannot help a container with an invalid mount path or volume name. The matching preventive check is “Add Pod schema checks and mount-level acceptance tests to storage workload releases”.