Skip to content

Commit 566db9c

Browse files
Update taint-and-toleration.md
1 parent 3a643c5 commit 566db9c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ tolerations:
6262
effect: "NoSchedule"
6363
```
6464
65-
Here's an example of a pod that uses tolerations:
65+
The default Kubernetes scheduler takes taints and tolerations into account when
66+
selecting a node to run a particular Pod. However, if you manually specify the
67+
`.spec.nodeName` for a Pod, that action bypasses the scheduler; the Pod is then
68+
bound onto on the node where you assigned it, even if there are `NoSchedule`
69+
taints on that node that you selected.
70+
If this happens and the node also has a `NoExecute` taint set, the kubelet will
71+
eject the Pod unless there is an appropriate toleration set.
72+
73+
Here's an example of a pod that has some tolerations defined:
6674

6775
{{% code_sample file="pods/pod-with-toleration.yaml" %}}
6876

@@ -315,10 +323,6 @@ tolerations to all daemons, to prevent DaemonSets from breaking.
315323
Adding these tolerations ensures backward compatibility. You can also add
316324
arbitrary tolerations to DaemonSets.
317325

318-
{{< note >}}
319-
If the `nodeName` for a Pod manifest is manually specified, the scheduler will assign the Pod to the node specified, regardless of any taints or tolerations.
320-
{{< /note >}}
321-
322326
## {{% heading "whatsnext" %}}
323327

324328
* Read about [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/)

0 commit comments

Comments
 (0)