From 6ebfa53e76c63d19a4149d5f82835d2fec35255c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 30 Jul 2022 10:27:52 +0800 Subject: [PATCH] [zh-cn] updated /concepts/configuration/secret.md --- .../docs/concepts/configuration/secret.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/content/zh-cn/docs/concepts/configuration/secret.md b/content/zh-cn/docs/concepts/configuration/secret.md index 59ac5e6313..5c0549f1f3 100644 --- a/content/zh-cn/docs/concepts/configuration/secret.md +++ b/content/zh-cn/docs/concepts/configuration/secret.md @@ -4,8 +4,8 @@ content_type: concept feature: title: Secret 和配置管理 description: > - 部署和更新 Secret 和应用程序的配置而不必重新构建容器镜像,且 - 不必将软件堆栈配置中的秘密信息暴露出来。 + 部署和更新 Secret 和应用程序的配置而不必重新构建容器镜像, + 且不必将软件堆栈配置中的秘密信息暴露出来。 weight: 30 --- ### 在静态 Pod 中使用 Secret {#restriction-static-pod} -你不可以在{{< glossary_tooltip text="静态 Pod" term_id="static-pod" >}}. +你不可以在{{< glossary_tooltip text="静态 Pod" term_id="static-pod" >}} 中使用 ConfigMap 或 Secret。 特殊字符(例如 `$`、`\`、`*`、`=` 和 `!`)会被你的 -[Shell](https://zh.wikipedia.org/wiki/Shell_(computing)) 解释,因此需要转义。 +[Shell](https://zh.wikipedia.org/wiki/%E6%AE%BC%E5%B1%A4) 解释,因此需要转义。 ### Docker 配置 Secret {#docker-config-secrets} -你可以使用下面两种 `type` 值之一来创建 Secret,用以存放用于访问容器鏡像倉庫的凭据: +你可以使用下面两种 `type` 值之一来创建 Secret,用以存放用于访问容器镜像仓库的凭据: - `kubernetes.io/dockercfg` - `kubernetes.io/dockerconfigjson` @@ -1631,7 +1630,7 @@ to create a Secret for accessing a container registry, you can do: 不过,API 服务器不会检查 JSON 数据本身是否是一个合法的 Docker 配置文件内容。 当你没有 Docker 配置文件,或者你想使用 `kubectl` 创建一个 Secret -来访问容器倉庫时,你可以这样做: +来访问容器仓库时,你可以这样做: ```shell kubectl create secret docker-registry secret-tiger-docker \