Skip to content

Commit 5461bdd

Browse files
modifications to taint-and-tolerations
* change to the tolerations overview wrt to pods * syntax of defining taint for a node Signed-off-by: Dipankar Das <[email protected]>
1 parent 67bd932 commit 5461bdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ is a property of {{< glossary_tooltip text="Pods" term_id="pod" >}} that *attrac
1515
a set of {{< glossary_tooltip text="nodes" term_id="node" >}} (either as a preference or a
1616
hard requirement). _Taints_ are the opposite -- they allow a node to repel a set of pods.
1717

18-
_Tolerations_ are applied to pods, and allow (but do not require) the pods to schedule
18+
_Tolerations_ are applied to pods, it does not guarantee that pod will get scheduled
1919
onto nodes with matching taints.
2020

2121
Taints and tolerations work together to ensure that pods are not scheduled
@@ -28,6 +28,11 @@ marks that the node should not accept any pods that do not tolerate the taints.
2828

2929
## Concepts
3030

31+
Basic Syntax
32+
```shell
33+
kubectl taint nodes <node_name> <key>=<value>:<effect>
34+
```
35+
3136
You add a taint to a node using [kubectl taint](/docs/reference/generated/kubectl/kubectl-commands#taint).
3237
For example,
3338

0 commit comments

Comments
 (0)