File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
content/en/docs/concepts/scheduling-eviction Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ You add a taint to a node using [kubectl taint](/docs/reference/generated/kubect
32
32
For example,
33
33
34
34
``` shell
35
- kubectl taint nodes node1 key=value :NoSchedule
35
+ kubectl taint nodes node1 key1=value1 :NoSchedule
36
36
```
37
37
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 ` .
39
39
This means that no pod will be able to schedule onto ` node1 ` unless it has a matching toleration.
40
40
41
41
To remove the taint added by the command above, you can run:
42
42
``` shell
43
- kubectl taint nodes node1 key=value :NoSchedule-
43
+ kubectl taint nodes node1 key1=value1 :NoSchedule-
44
44
```
45
45
46
46
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`:
49
49
50
50
``` yaml
51
51
tolerations :
52
- - key : " key "
52
+ - key : " key1 "
53
53
operator : " Equal"
54
- value : " value "
54
+ value : " value1 "
55
55
effect : " NoSchedule"
56
56
` ` `
57
57
58
58
` ` ` yaml
59
59
tolerations :
60
- - key : " key "
60
+ - key : " key1 "
61
61
operator : " Exists"
62
62
effect : " NoSchedule"
63
63
` ` `
@@ -80,7 +80,7 @@ There are two special cases:
80
80
An empty `key` with operator `Exists` matches all keys, values and effects which means this
81
81
will tolerate everything.
82
82
83
- An empty `effect` matches all effects with key `key `.
83
+ An empty `effect` matches all effects with key `key1 `.
84
84
85
85
{{< /note >}}
86
86
You can’t perform that action at this time.
0 commit comments