Skip to content

Commit a8efcda

Browse files
authored
Merge pull request #25125 from L3o-pold/patch-1
Improve Taints and Tolerations example
2 parents cb802d2 + 937ddce commit a8efcda

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ You add a taint to a node using [kubectl taint](/docs/reference/generated/kubect
3232
For example,
3333

3434
```shell
35-
kubectl taint nodes node1 key=value:NoSchedule
35+
kubectl taint nodes node1 key1=value1:NoSchedule
3636
```
3737

38-
places a taint on node `node1`. The taint has key `key`, value `value`, and taint effect `NoSchedule`.
38+
places a taint on node `node1`. The taint has key `key1`, value `value1`, and taint effect `NoSchedule`.
3939
This means that no pod will be able to schedule onto `node1` unless it has a matching toleration.
4040

4141
To remove the taint added by the command above, you can run:
4242
```shell
43-
kubectl taint nodes node1 key=value:NoSchedule-
43+
kubectl taint nodes node1 key1=value1:NoSchedule-
4444
```
4545

4646
You specify a toleration for a pod in the PodSpec. Both of the following tolerations "match" the
@@ -49,15 +49,15 @@ to schedule onto `node1`:
4949

5050
```yaml
5151
tolerations:
52-
- key: "key"
52+
- key: "key1"
5353
operator: "Equal"
54-
value: "value"
54+
value: "value1"
5555
effect: "NoSchedule"
5656
```
5757
5858
```yaml
5959
tolerations:
60-
- key: "key"
60+
- key: "key1"
6161
operator: "Exists"
6262
effect: "NoSchedule"
6363
```
@@ -80,7 +80,7 @@ There are two special cases:
8080
An empty `key` with operator `Exists` matches all keys, values and effects which means this
8181
will tolerate everything.
8282

83-
An empty `effect` matches all effects with key `key`.
83+
An empty `effect` matches all effects with key `key1`.
8484

8585
{{< /note >}}
8686

0 commit comments

Comments
 (0)