Skip to content

Commit 44b59ae

Browse files
authored
Merge pull request #41832 from asa3311/sync-zh-21
[zh-cn] sync taint-and-toleration images
2 parents 51b0ab6 + 0b876e6 commit 44b59ae

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

content/zh-cn/docs/concepts/containers/images.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ You should avoid using the `:latest` tag when deploying containers in production
162162
it is harder to track which version of the image is running and more difficult to
163163
roll back properly.
164164
165-
Instead, specify a meaningful tag such as `v1.42.0`.
165+
Instead, specify a meaningful tag such as `v1.42.0` and/or a digest.
166166
-->
167167
在生产环境中部署容器时,你应该避免使用 `:latest` 标签,因为这使得正在运行的镜像的版本难以追踪,并且难以正确地回滚。
168168

169-
相反,应指定一个有意义的标签,如 `v1.42.0`
169+
相反,应指定一个有意义的标签,如 `v1.42.0`,和/或者一个摘要
170170
{{< /note >}}
171171

172172
<!--
@@ -204,11 +204,17 @@ running the same code no matter what tag changes happen at the registry.
204204
205205
When you (or a controller) submit a new Pod to the API server, your cluster sets the
206206
`imagePullPolicy` field when specific conditions are met:
207+
208+
- if you omit the `imagePullPolicy` field, and you specify the digest for the
209+
container image, the `imagePullPolicy` is automatically set to `IfNotPresent`.
207210
-->
208211
#### 默认镜像拉取策略 {#imagepullpolicy-defaulting}
209212

210213
当你(或控制器)向 API 服务器提交一个新的 Pod 时,你的集群会在满足特定条件时设置 `imagePullPolicy` 字段:
211214

215+
- 如果你省略了 `imagePullPolicy` 字段,并且你为容器镜像指定了摘要,
216+
那么 `imagePullPolicy` 会自动设置为 `IfNotPresent`
217+
212218
<!--
213219
- if you omit the `imagePullPolicy` field, and the tag for the container image is
214220
`:latest`, `imagePullPolicy` is automatically set to `Always`;
@@ -228,14 +234,15 @@ When you (or a controller) submit a new Pod to the API server, your cluster sets
228234
{{< note >}}
229235
<!--
230236
The value of `imagePullPolicy` of the container is always set when the object is
231-
first _created_, and is not updated if the image's tag later changes.
237+
first _created_, and is not updated if the image's tag or digest later changes.
232238
233239
For example, if you create a Deployment with an image whose tag is _not_
234240
`:latest`, and later update that Deployment's image to a `:latest` tag, the
235241
`imagePullPolicy` field will _not_ change to `Always`. You must manually change
236242
the pull policy of any object after its initial creation.
237243
-->
238-
容器的 `imagePullPolicy` 的值总是在对象初次 _创建_ 时设置的,如果后来镜像的标签发生变化,则不会更新。
244+
容器的 `imagePullPolicy` 的值总是在对象初次 _创建_ 时设置的,
245+
如果后来镜像的标签或摘要发生变化,则不会更新。
239246

240247
例如,如果你用一个 **** `:latest` 的镜像标签创建一个 Deployment,
241248
并在随后更新该 Deployment 的镜像标签为 `:latest`,则 `imagePullPolicy` 字段 **不会** 变成 `Always`

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,11 @@ are true. The following taints are built in:
388388
的一个控制器初始化这个节点后,kubelet 将删除这个污点。
389389

390390
<!--
391-
In case a node is to be evicted, the node controller or the kubelet adds relevant taints
391+
In case a node is to be drained, the node controller or the kubelet adds relevant taints
392392
with `NoExecute` effect. If the fault condition returns to normal the kubelet or node
393393
controller can remove the relevant taint(s).
394394
-->
395-
在节点被驱逐时,节点控制器或者 kubelet 会添加带有 `NoExecute` 效果的相关污点。
395+
在节点被排空时,节点控制器或者 kubelet 会添加带有 `NoExecute` 效果的相关污点。
396396
如果异常状态恢复正常,kubelet 或节点控制器能够移除相关的污点。
397397

398398
<!--
@@ -407,7 +407,7 @@ the pods that are scheduled for deletion may continue to run on the partitioned
407407

408408
{{< note >}}
409409
<!--
410-
The control plane limits the rate of adding node new taints to nodes. This rate limiting
410+
The control plane limits the rate of adding new taints to nodes. This rate limiting
411411
manages the number of evictions that are triggered when many nodes become unreachable at
412412
once (for example: if there is a network disruption).
413413
-->

0 commit comments

Comments
 (0)