Skip to content

Containers / Init Containers

  • .Values.workload.$name.podSpec.containers.$name
  • .Values.workload.$name.podSpec.initContainers.$name

Every option under workload.$name.podSpec.containers.$name is also available under workload.$name.podSpec.initContainers.$name.

Unless otherwise noted.


Define if the container is enabled or not

Keyworkload.$name.podSpec.containers.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

workload:
workload-name:
podSpec:
containers:
container-name:
enabled: true

Define the type of container

Keyworkload.$name.podSpec.initContainers.$name.type
Typestring
Required
Helm tpl
Defaultinit

Valid Values:

  • init (Runs before the containers is started.)
  • install (Runs before the containers is started and only on install.)
  • upgrade (Runs before the containers is started and only on upgrade.)

Example

workload:
workload-name:
podSpec:
initContainers:
container-name:
type: init

Define the image map to use

Keyworkload.$name.podSpec.containers.$name.imageSelector
Typestring
Required
Helm tpl
Defaultimage

Example

workload:
workload-name:
podSpec:
containers:
container-name:
imageSelector: image

Define if the container is primary or not

Keyworkload.$name.podSpec.containers.$name.primary
Typebool
Required
Helm tpl
Defaultfalse

Example

workload:
workload-name:
podSpec:
containers:
container-name:
primary: true

Define if the container should have stdin enabled or not

Keyworkload.$name.podSpec.containers.$name.stdin
Typebool
Required
Helm tpl
Defaultfalse

Example

workload:
workload-name:
podSpec:
containers:
container-name:
stdin: true

Define if the container should have tty enabled or not

Keyworkload.$name.podSpec.containers.$name.tty
Typebool
Required
Helm tpl
Defaultfalse

Example

workload:
workload-name:
podSpec:
containers:
container-name:
tty: true

See command


See args


See extraArgs


See termination


See lifecycle


See probes


See resources


See securityContext


See envFrom


See fixedEnv


See env


See envList


workload:
workload-name:
enabled: true
primary: true
podSpec:
containers:
container-name:
enabled: true
primary: true
imageSelector: image
stdin: true
tty: true
initContainers:
init-container-name:
enabled: true
type: init
imageSelector: image
stdin: true
tty: true