Bird
0
0

If a node has a taint key=value:NoExecute and a pod has no tolerations, what will happen to the pod after it is scheduled on that node?

medium📝 Predict Output Q5 of 15
Kubernetes - Scheduling
If a node has a taint key=value:NoExecute and a pod has no tolerations, what will happen to the pod after it is scheduled on that node?
AThe pod will be scheduled but evicted after a grace period
BThe pod will remain running indefinitely
CThe pod will be immediately evicted from the node
DThe pod will ignore the taint and stay
Step-by-Step Solution
Solution:
  1. Step 1: Understand NoExecute taint effect

    NoExecute taint evicts pods that do not tolerate it immediately or after a grace period.
  2. Step 2: Consider pod tolerations

    The pod has no tolerations, so it cannot stay on the node with NoExecute taint.
  3. Final Answer:

    The pod will be scheduled but evicted after a grace period -> Option A
  4. Quick Check:

    No toleration for NoExecute taint causes eviction = A [OK]
Quick Trick: NoExecute taint evicts pods without tolerations immediately [OK]
Common Mistakes:
  • Thinking pod stays despite no toleration
  • Confusing NoSchedule with NoExecute effect
  • Assuming grace period always applies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes