Skip to content

Commit bae064d

Browse files
authored
Merge pull request #27721 from mengjiao-liu/sync-overview
[zh] Sync content/en/docs/concepts/configuration/overview.md
2 parents 11725df + e225ab3 commit bae064d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/zh/docs/concepts/configuration/overview.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ DNS server watches the Kubernetes API for new `Services` and creates a set of DN
151151

152152
<!--
153153
- Use [headless Services](/docs/concepts/services-networking/service/#headless-
154-
services) (which have a `ClusterIP` of `None`) for easy service discovery when you don't need `kube-proxy` load balancing.
154+
services) (which have a `ClusterIP` of `None`) for service discovery when you don't need `kube-proxy` load balancing.
155155
-->
156156
- 当您不需要 `kube-proxy` 负载均衡时,使用
157157
[无头服务](/zh/docs/concepts/services-networking/service/#headless-services)
@@ -175,7 +175,7 @@ services) (which have a `ClusterIP` of `None`) for easy service discovery when y
175175
A Service can be made to span multiple Deployments by omitting release-specific labels from its selector. [Deployments](/docs/concepts/workloads/controllers/deployment/) make it easy to update a running service without downtime.
176176
-->
177177
通过从选择器中省略特定发行版的标签,可以使服务跨越多个 Deployment。
178-
[Deployment](/zh/docs/concepts/workloads/controllers/deployment/) 可以在不停机的情况下轻松更新正在运行的服务
178+
当你需要不停机的情况下更新正在运行的服务,可以使用[Deployment](/zh/docs/concepts/workloads/controllers/deployment/)
179179

180180
<!--
181181
A desired state of an object is described by a Deployment, and if changes to that spec are _applied_, the deployment controller changes the actual state to the desired state at a controlled rate.
@@ -216,14 +216,14 @@ The [imagePullPolicy](/docs/concepts/containers/images/#updating-images) and the
216216
<!--
217217
- `imagePullPolicy: IfNotPresent`: the image is pulled only if it is not already present locally.
218218
- `imagePullPolicy: Always`: the image is pulled every time the pod is started.
219-
- `imagePullPolicy` is omitted and either the image tag is `:latest` or it is omitted: `Always` is applied.
220-
- `imagePullPolicy` is omitted and the image tag is present but not `:latest`: `IfNotPresent` is applied.
219+
- `imagePullPolicy` is omitted and either the image tag is `:latest` or it is omitted: `imagePullPolicy` is automatically set to `Always`. Note that this will _not_ be updated to `IfNotPresent` if the tag changes value.
220+
- `imagePullPolicy` is omitted and the image tag is present but not `:latest`: `imagePullPolicy` is automatically set to `IfNotPresent`. Note that this will _not_ be updated to `Always` if the tag is later removed or changed to `:latest`.
221221
- `imagePullPolicy: Never`: the image is assumed to exist locally. No attempt is made to pull the image.
222222
-->
223223
- `imagePullPolicy: IfNotPresent`:仅当镜像在本地不存在时才被拉取。
224224
- `imagePullPolicy: Always`:每次启动 Pod 的时候都会拉取镜像。
225-
- `imagePullPolicy` 省略时,镜像标签为 `:latest` 或不存在,使用 `Always`
226-
- `imagePullPolicy` 省略时,指定镜像标签并且不是 `:latest`使用 `IfNotPresent`
225+
- `imagePullPolicy` 省略时,镜像标签为 `:latest` 或不存在,其值自动被设置为 `Always`。注意,如果镜像标签的值发生改变,`imagePullPolicy` 的值不会被更新为 `IfNotPresent`
226+
- `imagePullPolicy` 省略时,指定镜像标签并且不是 `:latest`其值自动被设置为 `IfNotPresent`。注意,如果镜像标签的值之后被移除或者修改为 `latest``imagePullPolicy` 的值不会被更新为 `Always`
227227
- `imagePullPolicy: Never`:假设镜像已经存在本地,不会尝试拉取镜像。
228228

229229
<!--
@@ -244,10 +244,10 @@ You should avoid using the `:latest` tag when deploying containers in production
244244
{{< /note >}}
245245

246246
<!--
247-
The caching semantics of the underlying image provider make even `imagePullPolicy: Always` efficient. With Docker, for example, if the image already exists, the pull attempt is fast because all image layers are cached and no image download is needed.
247+
The caching semantics of the underlying image provider make even `imagePullPolicy: Always` efficient, as long as the registry is reliably accessible. With Docker, for example, if the image already exists, the pull attempt is fast because all image layers are cached and no image download is needed.
248248
-->
249249
{{< note >}}
250-
底层镜像驱动程序的缓存语义能够使即便 `imagePullPolicy: Always` 的配置也很高效。
250+
只要镜像仓库是可访问的,底层镜像驱动程序的缓存语义能够使即便 `imagePullPolicy: Always` 的配置也很高效。
251251
例如,对于 Docker,如果镜像已经存在,则拉取尝试很快,因为镜像层都被缓存并且不需要下载。
252252
{{< /note >}}
253253

0 commit comments

Comments
 (0)