Merge pull request #27972 from bnekolny/bn/secrets-env
Add envs example for secretGenerator.
This commit is contained in:
@@ -48,7 +48,19 @@ secretGenerator:
|
|||||||
- password=1f2d1e2e67df
|
- 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
|
## Create the Secret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user