Env
Appears in
.Values.workload.$name.podSpec.containers.$name
.Values.workload.$name.podSpec.initContainers.$name
env
Define env(s) for the container
Key | workload.$name.podSpec.containers.$name.env |
Type | map |
Required | ❌ |
Helm tpl | ✅ (Only value) |
Default | {} |
Example
env.$key
Define the env key
Key | workload.$name.podSpec.containers.$name.env.$key |
Type | string or map |
Required | ✅ |
Helm tpl | ✅ (Only on value, when it’s a string) |
Default | "" |
Example
env.$key.configMapKeyRef
Define variable from configMapKeyRef
Key | workload.$name.podSpec.containers.$name.env.$key.configMapKeyRef |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
env.$key.configMapKeyRef.name
Define the configMap name
Key | workload.$name.podSpec.containers.$name.env.$key.configMapKeyRef.name |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
env.$key.configMapKeyRef.key
Define the configMap key
Key | workload.$name.podSpec.containers.$name.env.$key.configMapKeyRef.key |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Example
env.$key.configMapKeyRef.expandObjectName
Whether to expand (adding the fullname as prefix) the configmap name
Key | workload.$name.podSpec.containers.$name.env.$key.configMapKeyRef.expandObjectName |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | true |
Example
env.$key.secretKeyRef
Define variable from secretKeyRef
Key | workload.$name.podSpec.containers.$name.env.$key.secretKeyRef |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
env.$key.secretKeyRef.name
Define the secret name
Key | workload.$name.podSpec.containers.$name.env.$key.secretKeyRef.name |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
env.$key.secretKeyRef.key
Define the secret key
Key | workload.$name.podSpec.containers.$name.env.$key.secretKeyRef.key |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Example
env.$key.secretKeyRef.expandObjectName
Whether to expand (adding the fullname as prefix) the secret name
Key | workload.$name.podSpec.containers.$name.env.$key.secretKeyRef.expandObjectName |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | true |
Example
env.$key.fieldRef
Define variable from fieldRef
Key | workload.$name.podSpec.containers.$name.env.$key.fieldRef |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
env.$key.fieldRef.fieldPath
Define the field path
Key | workload.$name.podSpec.containers.$name.env.$key.fieldRef.fieldPath |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Example
env.$key.fieldRef.apiVersion
Define the apiVersion
Key | workload.$name.podSpec.containers.$name.env.$key.fieldRef.apiVersion |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | "" |
Example