Kubernetes · Concept
Taints and tolerations
Kubernetes taints mark nodes to repel Pods. Tolerations in a PodSpec let Pods match taints, but they permit scheduling rather than guaranteeing it.
Last updated
Syntax
kubectl taint nodes NODE KEY[=VALUE]:EFFECT
spec:
tolerations:
- key: KEY
operator: Equal|Exists
value: VALUE
effect: NoSchedule|PreferNoSchedule|NoExecute
tolerationSeconds: SECONDSIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Node affinityNoSchedulePreferNoScheduleNoExecutetolerationSecondsExtended ResourcesDaemonSet tolerationsDevice taints and tolerations