Allow scheduling of pods on Kubernetes master? Allow scheduling of pods on Kubernetes master? kubernetes kubernetes

Allow scheduling of pods on Kubernetes master?


If you are using Kubernetes 1.7 and above:

kubectl taint node mymasternode node-role.kubernetes.io/master:NoSchedule-


First, get the name of the master

kubectl get nodesNAME     STATUS   ROLES    AGE   VERSIONyasin   Ready    master   11d   v1.13.4

as we can see there is one node with the name of yasin and the role is master. If we want to use it as worker we should run

kubectl taint nodes yasin node-role.kubernetes.io/master-


Use the below command to untaint all masters

kubectl taint nodes --all node-role.kubernetes.io/master-