This section describes how to edit node labels.

Node labels are key-value pairs set by users on nodes, which can be used to select nodes. For example, when creating a workload, you can specify that pods be scheduled onto nodes with specific labels.

Prerequisites

You need to join a cluster and have the Node Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has Node Management permissions and enter your cluster.

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

  3. In the node list, click the name of the node you want to operate on to open its details page.

  4. On the node details page, click Operation > Edit Labels.

  5. In the Edit Labels dialog box, set the key and value for the node label, then click OK.

    Note

    Click Add to set multiple labels for the node.