File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
content/zh/docs/tasks/configmap-secret Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,25 @@ secretGenerator:
68
68
- password=1f2d1e2e67df
69
69
` ` `
70
70
71
- <!-- Note that in both cases, you don't need to base64 encode the values. -->
71
+ <!--
72
+ You can also define the `secretGenerator` in the `kustomization.yaml`
73
+ file by providing `.env` files.
74
+ For example, the following `kustomization.yaml` file pulls in data from
75
+ `.env.secret` file :
76
+ -->
77
+ 你也可以使用 `.env` 文件在 `kustomization.yaml` 中定义 `secretGenerator`。
78
+ 例如:下面的 `kustomization.yaml` 文件从 `.env.secret` 文件获取数据。
79
+
80
+ ` ` ` yaml
81
+ secretGenerator:
82
+ - name: db-user-pass
83
+ envs:
84
+ - .env.secret
85
+ ` ` `
86
+
87
+ <!--
88
+ Note that in all cases, you don't need to base64 encode the values.
89
+ -->
72
90
注意,上面两种情况,你都不需要使用 base64 编码。
73
91
74
92
<!-- # # Create the Secret -->
You can’t perform that action at this time.
0 commit comments