Kubernetes 101 : Running a pod on the master node
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 "tolerations" and "nodeSelector" sections:
Let's check if the pod was scheduled on the master node:
Comments