< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Edit Node Taints

This section details how to edit node taints.

Taints are labels created by users on nodes, used in conjunction with tolerations created on pods. When a node has a taint, based on the configured taint effect, all pods with tolerations that do not match the taint will either be prevented from scheduling to the node or will be avoided from being scheduled to the node as much as possible.

A taint consists of three parts: key, value, and effect. The tolerations of pods must match the key, value, and effect of the taint, so that the pod can be unaffected by the taint.

Note

KubeSphere currently does not support editing pod tolerations. Therefore, by default, node taints take effect on all pods.

Prerequisites

You should join a cluster and have the Node Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

Steps

  1. Log in to the KubeSphere web console with a user who has the Node Management permission, and access your cluster.

  2. In the left navigation pane, select Nodes > Cluster Nodes to open the node list.

  3. Select the checkbox next to a node, then click Edit Taints above the node list.

  4. In the Edit Taints dialog, set the key, value, and effect of the taint, then click OK.

    You can choose one of the following effects for a taint:

    Taint Effect Description

    Prevent scheduling

    Pods with tolerations that do not match the taint will be prevented from scheduling to the node, existing pods on the node remain unaffected.

    Prevent scheduling if possible

    Pods with tolerations that do not match the taint will be prevented from scheduling to the node as much as possible, existing pods on the node remain unaffected.

    Prevent scheduling and evict existing pods

    Pods with tolerations that do not match the taint will be prevented from scheduling to the node, existing pods on the node will be immediately evicted if their tolerations do not match the taint.

    Note
    • Click Add to set multiple taints for a node.

    • If you are editing taints for multiple nodes simultaneously, you can set common taints for multiple nodes as well as individual taints for each node.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page