We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b38c75 commit eb0fbf2Copy full SHA for eb0fbf2
content/en/docs/tasks/configmap-secret/managing-secret-using-kustomize.md
@@ -48,7 +48,19 @@ secretGenerator:
48
- password=1f2d1e2e67df
49
```
50
51
-Note that in both cases, you don't need to base64 encode the values.
+You can also define the `secretGenerator` in the `kustomization.yaml`
52
+file by providing `.env` files.
53
+For example, the following `kustomization.yaml` file pulls in data from
54
+`.env.secret` file:
55
+
56
+```yaml
57
+secretGenerator:
58
+- name: db-user-pass
59
+ envs:
60
+ - .env.secret
61
+```
62
63
+Note that in all cases, you don't need to base64 encode the values.
64
65
## Create the Secret
66
0 commit comments