All Products
Search
Document Center

Container Service for Kubernetes:taint

Last Updated:Jun 14, 2024
ParameterTypeDescriptionExample
object

The configurations of node taints.

keystring

The key of a taint.

key
valuestring

The value of a taint.

value
effectstring

The scheduling policy. Valid values:

  • NoSchedule: This taint is not tolerated. However, only pods being scheduled are affected.
  • NoExecute: Pods that do not tolerate this taint are evicted after this taint is added to the node.
  • PreferNoSchedule: This value specifies a preference policy on pods. Scheduled pods are not subject to this policy. Try not to schedule pods that do not meet requirements to nodes.

Default value: NoSchedule.

NoSchedule