env¶
env
value in Kubedeploy can be used to define environment variables that will be configured on all containers in a Pod.
User can define containers env variable by passing the supported config.
Note
By default containers env
is undefined.
Define simple env var for container
values.yaml | |
---|---|
We can also use extended version to define environment values from ConfigMap or Secret objects.
Define env var from other sources
Defining multiple env vars from other sources
While the above example might work for referening couple of secret keys for extracting values, the configuration in values.yaml can be simplified by using envFrom
See also: