Study. uk . com
  1. Home
  2. All questions
  3. Question 670

CKA study material · question 670 of 1000

A Pod manifest sets spec.nodeName directly to a node carrying a NoExecute taint the Pod does not tolerate. What happens?

  1. The API server rejects the Pod at admission
  2. The Pod is placed on the node and the kubelet then ejects it
  3. The Pod runs normally, since the scheduler was bypassed
  4. The scheduler overrides nodeName and picks another node
Show the answer

Answer: B. The Pod is placed on the node and the kubelet then ejects it

Setting nodeName skips the scheduler, so NoSchedule taints are bypassed — but NoExecute is enforced by the kubelet, which ejects a Pod that does not tolerate it.

Source: Taints and Tolerations (Kubernetes) — Concepts

Challenge yourself on this topic → Study as cards