Adding Labels and Taints to a Cluster
UCS allows you to add different labels to clusters to define different attributes. By using these cluster labels, you can quickly understand the characteristics of each cluster. Taints enable a cluster to repel specific pods to prevent these pods from being scheduled to the cluster, achieving reasonable allocation of workloads on clusters.
Labels
You can add different labels to clusters to classify and manage clusters.
Taints
- NoSchedule: No pod will be able to schedule onto the cluster unless it has a matching toleration, but existing pods will not be evicted from the cluster.
- NoExecute: Pods that cannot tolerate this taint cannot be scheduled onto the cluster, and existing pods will be evicted from the cluster.
Managing Cluster Labels and Taints
- Log in to the UCS console.
- Click the name of the fleet where the target cluster is located. In the navigation pane, choose Container Clusters, locate the target cluster, and click in the upper right corner to go to the Manage Labels and Taints page.
Figure 1 Label and taint management
- Click to add a node label or taint. You can add a maximum of 10 operations at a time.
Figure 2 Adding labels or taints
- Choose Add or Delete.
- Set the operation object to Kubernetes Label or Taint.
- Specify Key and Value.
- If you choose Taint, select a taint effect. For details, see Taints.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot