From 8388ca4593bc53e315262cbd4ddedc40b61a4494 Mon Sep 17 00:00:00 2001 From: Arhell Date: Fri, 27 Nov 2020 01:03:28 +0200 Subject: [PATCH] improve Taints and Tolerations example (zh) --- .../scheduling-eviction/taint-and-toleration.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/zh/docs/concepts/scheduling-eviction/taint-and-toleration.md b/content/zh/docs/concepts/scheduling-eviction/taint-and-toleration.md index caef0f6311..685f75bbdc 100644 --- a/content/zh/docs/concepts/scheduling-eviction/taint-and-toleration.md +++ b/content/zh/docs/concepts/scheduling-eviction/taint-and-toleration.md @@ -45,11 +45,11 @@ For example, 您可以使用命令 [kubectl taint](/docs/reference/generated/kubectl/kubectl-commands#taint) 给节点增加一个污点。比如, ```shell -kubectl taint nodes node1 key=value:NoSchedule +kubectl taint nodes node1 key1=value1:NoSchedule ``` 给节点 `node1` 增加一个污点,它的键名是 `key`,键值是 `value`,效果是 `NoSchedule`。 @@ -81,15 +81,15 @@ to schedule onto `node1`: ```yaml tolerations: -- key: "key" +- key: "key1" operator: "Equal" - value: "value" + value: "value1" effect: "NoSchedule" ``` ```yaml tolerations: -- key: "key" +- key: "key1" operator: "Exists" effect: "NoSchedule" ``` @@ -123,7 +123,7 @@ There are two special cases: An empty `key` with operator `Exists` matches all keys, values and effects which means this will tolerate everything. -An empty `effect` matches all effects with key `key`. +An empty `effect` matches all effects with key `key1`. --> {{< note >}} 存在两种特殊情况: