Containers / Init Containers
Appears in
Section titled “Appears in”.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.
enabled
Section titled “enabled”Define if the container is enabled or not
Key | workload.$name.podSpec.containers.$name.enabled |
Type | bool |
Required | ✅ |
Helm tpl | ✅ |
Default | false |
Example
workload: workload-name: podSpec: containers: container-name: enabled: true
Define the type of container
Key | workload.$name.podSpec.initContainers.$name.type |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | init |
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
imageSelector
Section titled “imageSelector”Define the image map
to use
Key | workload.$name.podSpec.containers.$name.imageSelector |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | image |
Example
workload: workload-name: podSpec: containers: container-name: imageSelector: image
primary
Section titled “primary”Define if the container is primary or not
Key | workload.$name.podSpec.containers.$name.primary |
Type | bool |
Required | ✅ |
Helm tpl | ❌ |
Default | false |
Example
workload: workload-name: podSpec: containers: container-name: primary: true
Define if the container should have stdin enabled or not
Key | workload.$name.podSpec.containers.$name.stdin |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | false |
Example
workload: workload-name: podSpec: containers: container-name: stdin: true
Define if the container should have tty enabled or not
Key | workload.$name.podSpec.containers.$name.tty |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | false |
Example
workload: workload-name: podSpec: containers: container-name: tty: true
command
Section titled “command”See command
See args
extraArgs
Section titled “extraArgs”See extraArgs
termination
Section titled “termination”See termination
lifecycle
Section titled “lifecycle”See lifecycle
probes
Section titled “probes”See probes
resources
Section titled “resources”See resources
securityContext
Section titled “securityContext”See securityContext
envFrom
Section titled “envFrom”See envFrom
fixedEnv
Section titled “fixedEnv”See fixedEnv
See env
envList
Section titled “envList”See envList
Full Examples
Section titled “Full Examples”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