kubernetes v1.33

PodTemplate.template.spec.initContainers.env.valueFrom

EnvVarSource represents a source for the value of an EnvVar.

4 fields
PodTemplate.template.spec.initContainers.env.valueFrom fields and descriptions
Field / TypeDescription
ConfigMapKeySelector

Selects a key of a ConfigMap.

  • x-kubernetes-map-type: "atomic"
ObjectFieldSelector

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.

  • x-kubernetes-map-type: "atomic"
ResourceFieldSelector

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.

  • x-kubernetes-map-type: "atomic"
SecretKeySelector

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

  • x-kubernetes-map-type: "atomic"