Question 120
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Prevent general workloads from scheduling on worker-c until they explicitly tolerate special=dedicated:NoSchedule. 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
Reconcile taints with workload tolerations and document dedicated-node policies. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl taint nodes worker-c special=dedicated:NoSchedule after confirming it is absent. The relevant mechanism is: A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods.
Incorrect Answers
That safeguard is relevant to: A trailing minus removes the matching taint; adding a new toleration on every Pod would leave unnecessary cluster constraints. The current failure instead follows from: A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods. Its prevention measure is “Reconcile taints with workload tolerations and document dedicated-node policies”.
This routine guards against another mechanism: A ResourceQuota caps combined admitted requests in a namespace; per-Pod limits alone do not enforce a namespace-wide budget. The recurring exposure in the current case is: A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods. The matching preventive check is “Reconcile taints with workload tolerations and document dedicated-node policies”.
The suggested review tracks a different technical risk: Cordon marks a Node unschedulable to new Pods but does not drain running workloads. Here the sustained control must address: A NoSchedule taint repels Pods without a matching toleration but does not automatically evict already running Pods. Choose “Reconcile taints with workload tolerations and document dedicated-node policies”.