Kingsoft Cloud Container Engine (KCE) allows you to manage the labels of nodes in a cluster.
Add a label
- 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 label 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 Label. On the Label tab, select the target node and click Add Label in the Operation column or on the top of the list.
- In the Create Label dialog box, set the key and value and click OK. Then, the label appears in the Custom Label column.
Edit a label
- 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 label 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 Label. On the Label tab, find the target node and click the edit icon next to the label that you want to modify.
- In the Edit Label dialog box, modify the value as required and click OK. Then, the updated label appears in the Custom Label column.
Remove a label
- 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 label 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 Label. On the Label tab, find the target node and click the delete icon next to the label that you want to delete.
- In the Delete Label message, click OK. Then, the label disappears from the Custom Label column.
Note
- Make sure that the label to be deleted is not used by a service. Otherwise, the related pod may fail to be scheduled after the pod is restarted.