Skip to content

envFrom

Feature state: 1.1.0

envFrom value in Kubedeploy can be used to define environment variables that will be configured on all containers in a Pod.

For reference see envFrom secret example or envFrom configmap example

Note

By default containers envFrom is undefined.

Define simple envFrom for containers

values.yaml
nameOverride: my-app
image:
  repository: nginx
  tag: latest

envFrom:
  #env from ConfigMap
  - configMapRef:
      name: special-config
  # env from Secret
  - secretRef:
      name: test-secret
Deploy command
helm install webapp sysbee/kubedeploy -f values.yaml

In above example, envFrom will automatically define environment variables for all containers in a Pod by extracting all the ConfigMap/Secret keys as env var names, and their values as env var values.

See also: