Skip to content
masterclass Buddy

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: SECONDS

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Node affinity
  • NoSchedule
  • PreferNoSchedule
  • NoExecute
  • tolerationSeconds
  • Extended Resources
  • DaemonSet tolerations
  • Device taints and tolerations

Source: Taints and Tolerations. Checked 2026-11-03.