Skip to content

Commit e39e988

Browse files
authored
Merge pull request #35312 from yanrongshi/zh-cn]sync-managing-secret-using-kustomize
[zh-cn]sync managing-secret-using-kustomize.md
2 parents bc557bb + 41aa6aa commit e39e988

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

content/zh-cn/docs/tasks/configmap-secret/managing-secret-using-kustomize.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can generate a Secret by defining a `secretGenerator` in a
4040
For example, the following kustomization file references the
4141
`./username.txt` and the `./password.txt` files:
4242
-->
43-
你可以在 `kustomization.yaml` 中定义 `secreteGenerator`,并在定义中引用其他现成的文件,生成 Secret。
43+
你可以在 `kustomization.yaml` 中定义 `secreteGenerator` 字段,并在定义中引用其它本地文件生成 Secret。
4444
例如:下面的 kustomization 文件 引用了 `./username.txt``./password.txt` 文件:
4545

4646
```yaml
@@ -57,7 +57,7 @@ file by providing some literals.
5757
For example, the following `kustomization.yaml` file contains two literals
5858
for `username` and `password` respectively:
5959
-->
60-
你也可以在 `kustomization.yaml` 文件中指定一些字面量定义 `secretGenerator`。
60+
你也可以在 `kustomization.yaml` 文件中指定一些字面量定义 `secretGenerator` 字段
6161
例如:下面的 `kustomization.yaml` 文件中包含了 `username` 和 `password` 两个字面量:
6262

6363
```yaml
@@ -93,7 +93,7 @@ Note that in all cases, you don't need to base64 encode the values.
9393
## 创建 Secret {#create-the-secret}
9494

9595
<!-- Apply the directory containing the `kustomization.yaml` to create the Secret. -->
96-
使用 `kubectl apply` 命令应用包含 `kustomization.yaml` 文件的目录创建 Secret。
96+
在包含 `kustomization.yaml` 文件的目录下使用 `kubectl apply` 命令创建 Secret。
9797

9898
```shell
9999
kubectl apply -k .
@@ -166,7 +166,6 @@ To check the actual content of the encoded data, please refer to
166166
`kubectl get``kubectl describe` 命令默认不显示 `Secret` 的内容。
167167
这是为了防止 `Secret` 被意外暴露给旁观者或存储在终端日志中。
168168
检查编码后的实际内容,请参考[解码 secret](/zh-cn/docs/tasks/configmap-secret/managing-secret-using-kubectl/#decoding-secret)
169-
-->
170169

171170

172171
<!-- ## Clean Up -->

0 commit comments

Comments
 (0)