Main Menu

Search

KUBERNETES: How To Untaint / Taint Control Nodes (Master Nodes) So That Application Pods (App / User Pods) Are Started On Them (Kubectl Command)

KUBERNETES: How To Untaint / Taint Control Nodes (Master Nodes) So That Application Pods (App / User Pods) Are Started On Them (Kubectl Command)

Untaint the Control Node

Below are commands to untaint the Control Nodes so that application / user pods are started on them.
  
kubectl taint nodes control1 node-role.kubernetes.io/control-plane-

When running above command, in the console output you would see "<node> untainted" message.

Taint back Control Node

To taint back the control node and revert back changes you can run below command.
  
kubectl taint nodes control1 node-role.kubernetes.io/control-plane:NoSchedule

When running above command, in the console output you would see "<node> tainted" message.

No comments:

Post a Comment