Run pod on control plane kubernetes

By default, Kubernetes Cluster will not schedule pods on the control-plane node for security reasons. To be able to schedule pods on the Kubernetes control-plane node, you need to remove a taint on the master nodes.

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

For single node the command to use is:

kubectl taint nodes <node-name> node-role.kubernetes.io/control-plane-

Leave a Reply

Your email address will not be published. Required fields are marked *