toleration
What is toleration?
toleration: A Pod's permission to schedule onto a node with a matching taint. Tolerations do not force placement — they only allow it. A toleration lets a pod be scheduled on a node that has a matching taint. Without the toleration, the taint keeps the pod away. Tolerations only permit placement; they do not force it. A pod that tolerates the GPU taint can still land on an ordinary node. To make sure it goes to the GPU node, add node affinity or a node selector as well.
Frequently asked questions about toleration
What should you keep in mind with toleration?
You will see tolerations on system pods and DaemonSets, which need to run on every node, including tainted ones. Some tolerations also have a time limit, for example how long a pod may stay on a node that has become unreachable before it is moved. Keep your own tolerations specific, so pods do not end up on reserved or unhealthy nodes by accident.
What does an example of toleration look like?
spec: tolerations: - key: "dedicated" operator: "Equal" value: "gpu" effect: "NoSchedule" At a glance
| Category | Kubernetes |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |