This repository has been archived on 2024-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
onechart/website/docs/examples/environment-variables.md
T
2020-10-09 14:26:52 +02:00

32 lines
493 B
Markdown

OneChart settings for setting environment variables:
```yaml
image:
repository: nginx
tag: 1.19.3
vars:
VAR_1: "value 1"
VAR_2: "value 2"
```
Check the Kubernetes manifest:
```bash
cat << EOF > values.yaml
image:
repository: nginx
tag: 1.19.3
EOF
helm template my-release onechart/onechart -f values.yaml
```
!!! note
OneChart creates a `ConfigMap` with all the defined environment variables.
Then includes all entries with the `EnvFrom` field in the deployment.