Skip to main content
Schemaobject

io.k8s.api.core.v1.EnvVarSource

EnvVarSource represents a source for the value of an EnvVar.

Source
specs/apis__apps__v1_openapi.json
Revision
9a79c3bd90f7
Active snapshot
2a9112600697
configMapKeyRef
optional

Selects a key of a ConfigMap.

fieldRef
optional

Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

fileKeyRef
optional

FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.

resourceFieldRef
optional

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

secretKeyRef
optional

Selects a key of a secret in the pod's namespace