Kubernetes YAML Cheat Sheet/Tolerate tainted nodes

Allow pods onto special-purpose nodes.

Section: Scheduling and Placement

Tolerate tainted nodes

yaml
yaml
tolerations:
  - key: "dedicated"
    operator: "Equal"
    value: "batch"
    effect: "NoSchedule"

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Scheduling and Placement
Schedule onto labeled nodes
Require a simple node label match.
OpenIn sheetyamlsame section
Use required node affinity
More expressive scheduling constraints.
OpenIn sheetyamlsame section
Spread replicas across nodes
Avoid colocating the same app on one node.
OpenIn sheetyamlsame section
Minimal Pod manifest
Smallest practical Pod YAML shape.
Labels and annotations example
Common metadata block for selectors and tooling.
Override container command and args
Set entrypoint-style command in YAML.