@@ -33,16 +33,16 @@ Secret 和 ConfigMap。你可以使用 Kustomize 创建**资源生成器(Resou
3333
3434You can generate a Secret by defining a `secretGenerator` in a
3535`kustomization.yaml` file that references other existing files, `.env` files, or
36- literal values. For example, the following instructions create a Kustomization
36+ literal values. For example, the following instructions create a kustomization
3737file for the username `admin` and the password `1f2d1e2e67df`.
3838
39- ### Create the Kustomization file
39+ ### Create the kustomization file
4040-->
4141## 创建 Secret {#create-a-secret}
4242
4343你可以在 ` kustomization.yaml ` 文件中定义 ` secreteGenerator ` 字段,
4444并在定义中引用其它本地文件、` .env ` 文件或文字值生成 Secret。
45- 例如:下面的指令为用户名 ` admin ` 和密码 ` 1f2d1e2e67df ` 创建 Kustomization 文件。
45+ 例如:下面的指令为用户名 ` admin ` 和密码 ` 1f2d1e2e67df ` 创建 kustomization 文件。
4646
4747{{< note >}}
4848<!--
@@ -51,7 +51,7 @@ The `stringData` field for a Secret does not work well with server-side apply.
5151Secret 的 ` stringData ` 字段与服务端应用不兼容。
5252{{< /note >}}
5353
54- ### 创建 Kustomization 文件 {#create-the-kustomization-file}
54+ ### 创建 kustomization 文件 {#create-the-kustomization-file}
5555
5656{{< tabs name="Secret data" >}}
5757{{< tab name="文字" codelang="yaml" >}}
@@ -113,7 +113,7 @@ secretGenerator:
113113{{< /tabs >}}
114114
115115<!--
116- In all cases, you don't need to base64 encode the values. The name of the YAML
116+ In all cases, you don't need to encode the values in base64 . The name of the YAML
117117file **must** be `kustomization.yaml` or `kustomization.yml`.
118118-->
119119在所有情况下,你都不需要对取值作 base64 编码。
@@ -146,7 +146,7 @@ When a Secret is generated, the Secret name is created by hashing
146146the Secret data and appending the hash value to the name. This ensures that
147147a new Secret is generated each time the data is modified.
148148
149- To verify that the Secret was created and to decode the Secret data,
149+ To verify that the Secret was created and to decode the Secret data,
150150
151151```shell
152152kubectl get -k <directory-path> -o jsonpath='{.data}'
0 commit comments