Master nodes have a taint that prevents kubernetes from scheduling pods on them.
Only the pods that have a toleration for that taint could be scheduled on the master node.

If for some reason, we want to schedule a pod on the master node, we start by finding out the name of our master node, using the below command:


We then, get the taint of our master node:


We get also the labelthat we are going to use in the pod's Yaml file, in the nodeSelector field:


Below is the Yaml file of the pod to be scheduled on the master node:


We add a nodeSelector to make sure our pod is going to be scheduled on the master node.

We then check if our pod have been scheduled on the master node:


Brando Sabatini and Ikbal C ©. Powered by Blogger.