Chris Tomkins:
In the “Node Affinity” practice test, I don’t really understand why setting requiredDuringSchedulingIgnoredDuringExecution
on the pod template in the deployment causes the pods to restart on the other node. It says IgnoredDuringExecution - so why are they moving, when they’re already executing on a node?
Alistair Mackay:
IgnoredDuringExecution simply means that if the conditions for the affinity change while the pod is running, it should not force an eviction.
Pod may migrate for other reasons though.
Chris Tomkins:
Okay, thanks for taking the time to reply. I think I get it now.