Hi Team When controlplane node is having the Taint <http://node-role.kubernetes . . .

Baskar Lingam Ramachandran:
hi Team

When controlplane node is having the Taint http://node-role.kubernetes.io/master:NoSchedule|node-role.kubernetes.io/master:NoSchedule I am able to schedule a pod on it with nodeName field but without any toleration set

is this expected?

Noticed this as part of “manual scheduling” lab of CKA

unnivkn:
Yes… its expected

Eyal Solomon:
@unnivkn
Why is it expected ?
Pod has no toleration to that specific taint

Andrej Kohut:
if you decide to use other scheduler then default one, you can also explicitly define , based on what the pods will be scheduled.

So if you use nodeName, it will override / takes higher priority then nodeSelector and/or node affinity.

unnivkn:
@Eyal Solomon Manual scheduling overrides k8s scheduler.

Eyal Solomon:
Thanks