Question 880
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Pod invoice-api in namespace ledger stays Pending with scheduler events stating Insufficient cpu. 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
Review sizing and autoscaling headroom against known resource requests. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger describe pod invoice-api and compare CPU requests with kubectl describe node worker-a allocatable resources. The relevant mechanism is: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone.
Incorrect Answers
That safeguard is relevant to: The scheduler assigns unscheduled Pods to nodes; a broken scheduler differs from per-Pod placement constraints. The current failure instead follows from: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone. Its prevention measure is “Review sizing and autoscaling headroom against known resource requests”.
This routine guards against another mechanism: Finalizers protect cleanup work; forcibly removing them without identifying failing controllers can orphan resources and leak infrastructure. The recurring exposure in the current case is: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone. The matching preventive check is “Review sizing and autoscaling headroom against known resource requests”.
That safeguard is relevant to: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. The current failure instead follows from: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone. Its prevention measure is “Review sizing and autoscaling headroom against known resource requests”.