Kingsoft Cloud Container Engine (KCE) allows you to manage the taints of nodes in a cluster. You can add taints to a node to allow the node to repel specific pods.
Add a taint
- Log in to the KCE console.
- In the left navigation pane, click Cluster.
- Click the ID of the cluster in which you want to add a taint to a node. The cluster details page appears.
- In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
- Click Labels and Taints.
- Click Taint. On the Taint tab, find the target node and click Add Taint in the Operation column or on the top of the list.
- In the Create Taint dialog box, set the Key, Value, and Effect parameter and click OK. Then, the taint appears in the Taint column.
Value values of the Effect parameter:
- NoSchedule: prohibits new pods from being scheduled to the node.
- PreferNoSchedule: preferably prohibits pods without corresponding tolerations from being scheduled to the node.
- NoExecute: prohibits pods from running on the node. If a pod is running on the node, the pod will be drained.
Edit a taint
- Log in to the KCE console.
- In the left navigation pane, click Cluster.
- Click the ID of the cluster in which you want to edit a taint of a node. The cluster details page appears.
- In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
- Click Labels and Taints.
- Click Taint. On the Taint tab, find the target node and click the edit icon next to the taint that you want to modify.
- In the Edit Taint dialog box, modify the Value and Effect parameters as required and click OK. Then, the updated taint appears in the Taint column.
Remove a taint
- Log in to the KCE console.
- In the left navigation pane, click Cluster.
- Click the ID of the cluster in which you want to remove a taint from a node. The cluster details page appears.
- In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
- Click Labels and Taints.
- Click Taint. On the Taint tab, find the target node and click the delete icon next to the taint that you want to remove.
- In the Delete Taint message, click OK. Then, the taint disappears from the Taint column.