Merge pull request #27972 from bnekolny/bn/secrets-env

Add envs example for secretGenerator.
This commit is contained in:
Kubernetes Prow Robot
2021-05-14 04:54:05 -07:00
committed by GitHub
@@ -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