@@ -45,11 +45,11 @@ For example,
45
45
您可以使用命令 [ kubectl taint] ( /docs/reference/generated/kubectl/kubectl-commands#taint ) 给节点增加一个污点。比如,
46
46
47
47
``` shell
48
- kubectl taint nodes node1 key=value :NoSchedule
48
+ kubectl taint nodes node1 key1=value1 :NoSchedule
49
49
```
50
50
51
51
<!--
52
- places a taint on node `node1`. The taint has key `key `, value `value `, and taint effect `NoSchedule`.
52
+ places a taint on node `node1`. The taint has key `key1 `, value `value1 `, and taint effect `NoSchedule`.
53
53
This means that no pod will be able to schedule onto `node1` unless it has a matching toleration.
54
54
55
55
```shell
@@ -58,7 +58,7 @@ kubectl taint nodes node1 key:NoSchedule
58
58
59
59
To remove the taint added by the command above, you can run:
60
60
```shell
61
- kubectl taint nodes node1 key :NoSchedule-
61
+ kubectl taint nodes node1 key1=value1 :NoSchedule-
62
62
```
63
63
-->
64
64
给节点 ` node1 ` 增加一个污点,它的键名是 ` key ` ,键值是 ` value ` ,效果是 ` NoSchedule ` 。
@@ -81,15 +81,15 @@ to schedule onto `node1`:
81
81
82
82
``` yaml
83
83
tolerations :
84
- - key : " key "
84
+ - key : " key1 "
85
85
operator : " Equal"
86
- value : " value "
86
+ value : " value1 "
87
87
effect : " NoSchedule"
88
88
` ` `
89
89
90
90
` ` ` yaml
91
91
tolerations :
92
- - key : " key "
92
+ - key : " key1 "
93
93
operator : " Exists"
94
94
effect : " NoSchedule"
95
95
` ` `
@@ -123,7 +123,7 @@ There are two special cases:
123
123
An empty `key` with operator `Exists` matches all keys, values and effects which means this
124
124
will tolerate everything.
125
125
126
- An empty `effect` matches all effects with key `key `.
126
+ An empty `effect` matches all effects with key `key1 `.
127
127
-->
128
128
{{< note >}}
129
129
存在两种特殊情况:
0 commit comments