Tejas Mane:
Hello folks, I am trying one scenario on the taints and toleration section. I set taint on the node01
of type NoSchedule
. Then I created a pod without applying any toleration to it but I set a nodeName
property to node01
in its definition file. Here I am expecting the pod to be in a pending state. But it’s scheduled and was running in spite of the taint on the node and No toleration on the pod. I do not understand the reasoning behind it. Can any one of you please help me with this? Thanks in advance!
Alistair Mackay:
Hi @Tejas Mane
Taints and tolerations are used by the kube scheduler to decide where to put a pod.
If you supply nodeName
in your pod manifest, you are taking the decision away from the scheduler and telling it that you know best. Thus the pod is created.