From 1f4b65209f5a1eb77245536b3c1b0c1eb3b30e84 Mon Sep 17 00:00:00 2001 From: yuandongx Date: Mon, 28 Dec 2020 07:15:26 +0000 Subject: [PATCH] update --- content/zh/docs/concepts/containers/images.md | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/content/zh/docs/concepts/containers/images.md b/content/zh/docs/concepts/containers/images.md index 463705f659..08b70bdbaf 100644 --- a/content/zh/docs/concepts/containers/images.md +++ b/content/zh/docs/concepts/containers/images.md @@ -175,7 +175,7 @@ Credentials can be provided in several ways: 向容器仓库认证的机制 下面将详细描述每一项。 @@ -195,11 +195,11 @@ This approach is suitable if you can control node configuration. 此方法适用于能够对节点进行配置的场合。 {{< note >}} -Kubernetes 仅支持 Docker 配置中的 `auths` 和 `HttpHeaders` 部分, +Kubernetes 默认仅支持 Docker 配置中的 `auths` 和 `HttpHeaders` 部分, 不支持 Docker 凭据辅助程序(`credHelpers` 或 `credsStore`)。 {{< /note >}} @@ -300,6 +300,26 @@ EOF pod/private-image-test-1 created ``` + +如果一切顺利,那么一段时间后你可以执行: +```shell +kubectl logs private-image-test-1 +``` +然后可以看到命令的输出: +``` +SUCCESS +``` + @@ -474,7 +494,7 @@ EOF This needs to be done for each pod that is using a private registry. However, setting of this field can be automated by setting the imagePullSecrets -in a [ServiceAccount](/docs/tasks/configure-pod-container/configure-service-accounts/) resource. +in a [ServiceAccount](/docs/tasks/configure-pod-container/configure-service-account/) resource. Check [Add ImagePullSecrets to a Service Account](/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account) for detailed instructions.