All Products
Search
Document Center

Container Service for Kubernetes:taint

Last Updated:Jun 12, 2026

Parameter

Type

Description

Example

object

The node taint configuration.

key

string

The key of the taint.

key

value

string

The value of the taint.

value

effect

string

The scheduling policy. Valid values:

  • NoSchedule: Pods that do not tolerate the taint are not scheduled to the node. Existing pods on the node are not affected. This policy takes effect only on newly added pods.

  • NoExecute: Pods that do not tolerate the taint are evicted from the node when the taint is applied or modified.

  • PreferNoSchedule: A soft constraint. The system tries to avoid scheduling pods that do not tolerate the taint to the node. Existing pods on the node are not affected.

Default value: NoSchedule.

NoSchedule