Skip to content

Commit c589c39

Browse files
authored
Merge pull request #25258 from Arhell/upd-taint
improve Taints and Tolerations example (zh)
2 parents a0560f3 + 8388ca4 commit c589c39

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ For example,
4545
您可以使用命令 [kubectl taint](/docs/reference/generated/kubectl/kubectl-commands#taint) 给节点增加一个污点。比如,
4646

4747
```shell
48-
kubectl taint nodes node1 key=value:NoSchedule
48+
kubectl taint nodes node1 key1=value1:NoSchedule
4949
```
5050

5151
<!--
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`.
5353
This means that no pod will be able to schedule onto `node1` unless it has a matching toleration.
5454
5555
```shell
@@ -58,7 +58,7 @@ kubectl taint nodes node1 key:NoSchedule
5858
5959
To remove the taint added by the command above, you can run:
6060
```shell
61-
kubectl taint nodes node1 key:NoSchedule-
61+
kubectl taint nodes node1 key1=value1:NoSchedule-
6262
```
6363
-->
6464
给节点 `node1` 增加一个污点,它的键名是 `key`,键值是 `value`,效果是 `NoSchedule`
@@ -81,15 +81,15 @@ to schedule onto `node1`:
8181

8282
```yaml
8383
tolerations:
84-
- key: "key"
84+
- key: "key1"
8585
operator: "Equal"
86-
value: "value"
86+
value: "value1"
8787
effect: "NoSchedule"
8888
```
8989
9090
```yaml
9191
tolerations:
92-
- key: "key"
92+
- key: "key1"
9393
operator: "Exists"
9494
effect: "NoSchedule"
9595
```
@@ -123,7 +123,7 @@ There are two special cases:
123123
An empty `key` with operator `Exists` matches all keys, values and effects which means this
124124
will tolerate everything.
125125

126-
An empty `effect` matches all effects with key `key`.
126+
An empty `effect` matches all effects with key `key1`.
127127
-->
128128
{{< note >}}
129129
存在两种特殊情况:

0 commit comments

Comments
 (0)