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 label, that 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: