Skip to content

Commit 11343c7

Browse files
committed
[zh] sync /concepts/containers/images.md
1 parent 20042ea commit 11343c7

File tree

1 file changed

+3
-14
lines changed
  • content/zh-cn/docs/concepts/containers

1 file changed

+3
-14
lines changed

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ When you (or a controller) submit a new Pod to the API server, your cluster sets
204204
-->
205205
#### 默认镜像拉取策略 {#imagepullpolicy-defaulting}
206206

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

209209
<!--
210210
- if you omit the `imagePullPolicy` field, and the tag for the container image is
@@ -358,20 +358,11 @@ These options are explained in more detail below.
358358
359359
Specific instructions for setting credentials depends on the container runtime and registry you chose to use. You should refer to your solution's documentation for the most accurate information.
360360
-->
361-
### 配置 Node 对私有仓库认证 {configuring-nodes-to-authenticate-to-a-private-registry}
361+
### 配置 Node 对私有仓库认证 {#configuring-nodes-to-authenticate-to-a-private-registry}
362362

363363
设置凭据的具体说明取决于你选择使用的容器运行时和仓库。
364364
你应该参考解决方案的文档来获取最准确的信息。
365365

366-
<!--
367-
Default Kubernetes only supports the `auths` and `HttpHeaders` section in Docker configuration.
368-
Docker credential helpers (`credHelpers` or `credsStore`) are not supported.
369-
-->
370-
{{< note >}}
371-
Kubernetes 默认仅支持 Docker 配置中的 `auths``HttpHeaders` 部分,
372-
不支持 Docker 凭据辅助程序(`credHelpers``credsStore`)。
373-
{{< /note >}}
374-
375366
<!--
376367
For an example of configuring a private container image registry, see the
377368
[Pull an Image from a Private Registry](/docs/tasks/configure-pod-container/pull-image-private-registry)
@@ -604,7 +595,7 @@ reference a Secret in the same namespace.
604595
605596
For example:
606597
-->
607-
#### 在 Pod 中引用 ImagePullSecrets {referring-to-an-imagepullsecrets-on-a-pod}
598+
#### 在 Pod 中引用 ImagePullSecrets {#referring-to-an-imagepullsecrets-on-a-pod}
608599

609600
现在,在创建 Pod 时,可以在 Pod 定义中增加 `imagePullSecrets` 部分来引用该 Secret。
610601
`imagePullSecrets` 数组中的每一项只能引用同一名字空间中的 Secret。
@@ -717,10 +708,8 @@ common use cases and suggested solutions.
717708

718709
<!--
719710
If you need access to multiple registries, you can create one secret for each registry.
720-
Kubelet will merge any `imagePullSecrets` into a single virtual `.docker/config.json`
721711
-->
722712
如果你需要访问多个仓库,可以为每个仓库创建一个 Secret。
723-
`kubelet` 将所有 `imagePullSecrets` 合并为一个虚拟的 `.docker/config.json` 文件。
724713

725714

726715
## {{% heading "whatsnext" %}}

0 commit comments

Comments
 (0)