Pods repel nodes that have specified taints when pods are scheduled. You can add one
or more taints to a node. This topic describes how to add a taint to multiple nodes
at a time and delete a taint from a node.
Prerequisites
A Container Service for Kubernetes (ACK) cluster is created. For more information,
see Create an ACK managed cluster.
In the left-side navigation pane of the ACK console, click Clusters to go to the Clusters page.
On the Clusters page, find the cluster that you want to manage, and click the name of the cluster
or click Details in the Actions column.
In the left-side navigation pane of the details page, choose Nodes > Nodes.
On the Nodes page, click Manage Labels and Taints in the upper-right corner of the page.
Click the Taints tab, select one or more nodes, and then click Add Taint.
In the dialog box that appears, set Name, Value, and Effect.
The following table describes the Effect parameter. For more information, see Taints and tolerations.
Parameter
Description
NoSchedule
If a node contains a taint for which you set the value of Effect to NoSchedule, the system does not schedule pods to this node.
NoExecute
Pods that do not tolerate this taint are evicted after this taint is added to the
node. Pods that tolerate this taint are not evicted after this taint is added to the
node.
PreferNoSchedule
The system attempts to avoid scheduling pods to nodes with taints that are not tolerated
by the pods. However, this is not mandatory.
Click OK.
On the Taints tab, you can verify that the taint is added to the selected nodes.
In the left-side navigation pane of the ACK console, click Clusters to go to the Clusters page.
On the Clusters page, find the cluster that you want to manage, and click the name of the cluster
or click Details in the Actions column.
In the left-side navigation pane of the details page, choose Nodes > Nodes.
On the Nodes page, click Manage Labels and Taints in the upper-right corner of the page.
On the Manage Labels and Taints page, click the Taints tab, select a node, and then click of a taint in the Taints column. In the message that appears, click Confirm.
After the taint is deleted, it disappears from the Taints column.