Kubernetes 101 : Running a pod on the master node

Usually the kubernetes master nodes have a taint to prevent pods from being scheduled on them.

To schedule a pod on a master node, we check the master node's taint.

But first, we get the master node's name using the below command:

Then we use the name of the master node to get the taint:

We laso get the labels of the master node:

We use the label and the taint of the master node in the below pod's Yaml file in the "tolerationsand "nodeSelectorsections:

We then create our pod as below:

Let's check if the pod was scheduled on the master node:


Leave as a comment: