Add envs example for secretGenerator.

This commit is contained in:
Brett Nekolny
2021-05-12 17:29:17 -06:00
parent 2b38c750b1
commit eb0fbf236b
@@ -48,7 +48,19 @@ secretGenerator:
- password=1f2d1e2e67df
```
Note that in both cases, you don't need to base64 encode the values.
You can also define the `secretGenerator` in the `kustomization.yaml`
file by providing `.env` files.
For example, the following `kustomization.yaml` file pulls in data from
`.env.secret` file:
```yaml
secretGenerator:
- name: db-user-pass
envs:
- .env.secret
```
Note that in all cases, you don't need to base64 encode the values.
## Create the Secret