Kubernetes deploying container in master

3/30/2017

I have set up a kubernetes cluster and is working fine.

As of now, Kubernetes cluster deploying container in the master as well. I dont want this to be happened . Can anybody let me know, how to prevent to deploy container in the master ?

-- sitakant
deployment
docker
kubernetes
master-slave

1 Answer

3/30/2017

If you want no Pods to be scheduled on the master you will need to taint the master node:

kubectl taint nodes nameofmaster dedicated=master:NoSchedule

Read up on taints and tolerations to understand the consequences and how to schedule specific Pods on the now tainted master node. To undo use kubectl taint nodes nameofmaster dedicated-

-- Janos Lenart
Source: StackOverflow