Pod toleration

Last updated:2021-11-11 17:43:13

Pod toleration

The node selector and node affinity policies allow you to schedule pods onto the nodes that meet the specified rules. On the contrary, property taints on a node allow it to repel specific pods. You can set pod toleration policies so that pods can be scheduled onto nodes with specific taints. Taints and tolerations can be used together to prevent pods from being scheduled onto inappropriate nodes.

  1. Log in to the Kingsoft Cloud Container Engine (KCE) console.
  2. In the left navigation pane, click Cluster.
  3. Click the ID of the target cluster. The cluster details page appears.
  4. In the left navigation pane, choose Workload > Deployment. The deployment list page appears.


  • You can go to the Deployment, StatefulSet, or DaemonSet page as required.
  1. Click Create in the upper-left corner. On the Create Deployment page, set the parameters and click Next to go to step 2 Deployment Configuration.
  2. Click ShowAdvanced Settings at the bottom of the page and select AddPodToleration.
  3. In the AddPodToleration panel, set a pod toleration policy to meet your business needs and click OK.

The following table describes the detailed settings of a pod toleration policy.

Parameter Description
Toleration Key The key of the taint. If you do not specify this parameter, all taints are included. In this case, you must set the Operator parameter to Exists.
Operator The operator between the key and the value. Valid values: Exists and Equal.
Toleration Value The value of the taint.
Effect The effect of the rule. Valid values: NoSchedule, PreferNoSchedule, and NoExecute.
Time (S) The duration of the toleration. By default, this parameter is left unspecified, which indicates that the pod can permanently tolerate the taint and will not be repelled. If you set this field to 0 or a negative value, the pod will be immediately repelled.

Scheduling rules

You can click Add Scheduling Rule to add multiple pod toleration rules. A pod can be scheduled when it meets any of the toleration rules.

Did you find the above information helpful?

Mostly Unhelpful
A little helpful
Very helpful

What might be the problems?

Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions


Please give us your feedback.


Thank you for your feedback.