Manage taints

Updated at:

Taints mark nodes to repel specific classes of pods. You can apply one or more taints to each node. This section describes how to add and delete taints.

Prerequisites

A cluster is created or a cluster is imported.

Add a taint

  1. Log on to the console. In the navigation pane on the left, click Cluster Management > Cluster Details to open the cluster list page.

  2. Click a cluster card to open the Cluster Details page.

  3. Click the Nodes tab to open the node list page.

  4. Select a node and click More Actions > Edit Taint.

  5. In the taint list, click Add Row. In the dialog box that appears, enter a Key and a Value, select an Effect, and then click OK. The following options are available for Effect:

    • NoSchedule: Prevents pods without a matching toleration from being scheduled to the node.

    • NoExecute: Evicts pods that are already running on the node if they do not have a matching toleration. Prevents pods without a matching toleration from being scheduled to the node.

    • PreferNoSchedule: Tries to avoid scheduling pods without a matching toleration to the node.

For more information, see the official documentation.

Delete a taint

  1. Log on to the console. In the navigation pane on the left, click Cluster Management > Cluster Details to open the cluster list page.

  2. Click a cluster card to open the Cluster Details page.

  3. Click the Nodes tab to open the node list page.

  4. Select a node and click More Actions > Edit Taint.

  5. In the taint list, click Delete next to the taint.