Kubernetes Cluster Behaviour
Generally kubernetes cluster deployment tools mark the master nodes as Unschedulable
which prevents the scheduler from placing pods onto master. But It's possible that pod get scheduled to master nodes when all of below is true
- Master node has
Unschedulable: false
flag. You can check this by describing the node usingkubectl describe node serverone
- It does not have any
taints
withNoSchedule
effect - If it has got taints(as explained in no 2) but you have mentioned
tolerations
in the pod spec for thosetaints
.
More about taints and tolerations here