k8wiz
Kubernetes
Hard
Concepts

A pod was scheduled using a requiredDuringSchedulingIgnoredDuringExecution node affinity rule. Later someone removes the matching label from the node. What happens to the pod?

Select your answer:

Show answer and explanation

Answer: It keeps running on that node

Explanation

The IgnoredDuringExecution part of the name means the rule is only checked when the pod is scheduled. Changing node labels afterwards doesn't affect pods already running there. To move pods off a node, add a NoExecute taint or drain the node.