Skip to content

Commit cc9011a

Browse files
authored
Merge pull request #28953 from howieyuen/taint
[zh] optimise translation of taint-and-toleration.md
2 parents 23c6fea + 7146318 commit cc9011a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ weight: 40
66

77
<!-- overview -->
88
<!--
9-
Node affinity, described [here](/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature),
9+
[_Node affinity_](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
1010
is a property of {{< glossary_tooltip text="Pods" term_id="pod" >}} that *attracts* them to
1111
a set of {{< glossary_tooltip text="nodes" term_id="node" >}} (either as a preference or a
12-
hard requirement). Taints are the opposite -they allow a node to repel a set of pods.
12+
hard requirement). _Taints_ are the opposite -- they allow a node to repel a set of pods.
1313
-->
14-
节点亲和性(详见[这里](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
14+
[_节点亲和性_](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
1515
是 {{< glossary_tooltip text="Pod" term_id="pod" >}} 的一种属性,它使 Pod
16-
被吸引到一类特定的{{< glossary_tooltip text="节点" term_id="node" >}}
17-
这可能出于一种偏好,也可能是硬性要求。
18-
Taint(污点)则相反它使节点能够排斥一类特定的 Pod。
16+
被吸引到一类特定的{{< glossary_tooltip text="节点" term_id="node" >}}
17+
这可能出于一种偏好,也可能是硬性要求
18+
_污点_(Taint)则相反——它使节点能够排斥一类特定的 Pod。
1919

2020
<!--
2121
_Tolerations_ are applied to pods, and allow (but do not require) the pods to schedule
@@ -25,7 +25,7 @@ Taints and tolerations work together to ensure that pods are not scheduled
2525
onto inappropriate nodes. One or more taints are applied to a node; this
2626
marks that the node should not accept any pods that do not tolerate the taints.
2727
-->
28-
容忍度(Tolerations)是应用于 Pod 上的,允许(但并不要求)Pod
28+
容忍度(Toleration)是应用于 Pod 上的,允许(但并不要求)Pod
2929
调度到带有与之匹配的污点的节点上。
3030

3131
污点和容忍度(Toleration)相互配合,可以用来避免 Pod 被分配到不合适的节点上。
@@ -312,7 +312,7 @@ manually add tolerations to your pods.
312312
来表示特殊硬件,给配置了特殊硬件的节点添加污点时包含扩展资源名称,
313313
然后运行一个 [ExtendedResourceToleration](/zh/docs/reference/access-authn-authz/admission-controllers/#extendedresourcetoleration)
314314
准入控制器。此时,因为节点已经被设置污点了,没有对应容忍度的 Pod
315-
会被调度到这些节点。但当你创建一个使用了扩展资源的 Pod 时,
315+
不会被调度到这些节点。但当你创建一个使用了扩展资源的 Pod 时,
316316
`ExtendedResourceToleration` 准入控制器会自动给 Pod 加上正确的容忍度,
317317
这样 Pod 就会被自动调度到这些配置了特殊硬件件的节点上。
318318
这样就能够确保这些配置了特殊硬件的节点专门用于运行需要使用这些硬件的 Pod,

0 commit comments

Comments
 (0)