@kubricate/plugin-kubernetes / kubernetes-types / EnvVar
Interface: EnvVar
EnvVar represents an environment variable present in a Container.
Ported from import { IEnvVar } from 'kubernetes-models/v1/EnvVar';
Properties
name
ts
name: string;Name of the environment variable. Must be a C_IDENTIFIER.
value?
ts
optional value: string;Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.
valueFrom?
ts
optional valueFrom: object;Source for the environment variable's value. Cannot be used if value is not empty.
secretKeyRef?
ts
optional secretKeyRef: object;Selects a key of a secret in the pod's namespace
secretKeyRef.key
ts
key: string;The key of the secret to select from. Must be a valid secret key.
secretKeyRef.name?
ts
optional name: string;Name of the referent.
secretKeyRef.optional?
ts
optional optional: boolean;Specify whether the Secret or its key must be defined