Workload
Appears in
.Values.workload
Naming scheme
- Primary:
$FullName
(release-name-chart-name) - Non-Primary:
$FullName-$WorkloadName
(release-name-chart-name-workload-name)
workload
Define workload objects
Key | workload |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
$name
Define workload
Key | workload.$name |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
enabled
Enable or disable workload
Key | workload.$name.enabled |
Type | bool |
Required | ✅ |
Helm tpl | ✅ |
Default | false |
Example
primary
Set workload as primary
Key | workload.$name.primary |
Type | bool |
Required | ✅ |
Helm tpl | ❌ |
Default | false |
Example
labels
Define labels for workload
Key | workload.$name.labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
annotations
Define annotations for workload
Key | workload.$name.annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
namespace
Define the namespace for this object
Key | workload.$name.namespace |
Type | string |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | "" |
Example
type
Define the kind of the workload
Key | workload.$name.type |
Type | string |
Required | ✅ |
Helm tpl | ❌ |
Default | "" |
Valid values
Example
podSpec
Define the podSpec for the workload
Key | workload.$name.podSpec |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
labels
Define labels for podSpec
Key | workload.$name.podSpec.labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
annotations
Define annotations for podSpec
Key | workload.$name.podSpec.annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example
automountServiceAccountToken
Pod’s automountServiceAccountToken
Key | workload.$name.podSpec.automountServiceAccountToken |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
hostNetwork
Bind pod to host’s network
Key | workload.$name.podSpec.hostNetwork |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
hostPID
Allow pod to access host’s PID namespace
Key | workload.$name.podSpec.hostPID |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
hostIPC
Allow pod to access host’s IPC namespace
Key | workload.$name.podSpec.hostIPC |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
hostUsers
Allow pod to access host’s users namespace
Key | workload.$name.podSpec.hostUsers |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
shareProcessNamespace
Share Process Namespace with other containers in the pod
Key | workload.$name.podSpec.shareProcessNamespace |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
enableServiceLinks
Pod’s enableServiceLinks
Key | workload.$name.podSpec.enableServiceLinks |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
restartPolicy
Pod’s restartPolicy
Key | workload.$name.podSpec.restartPolicy |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Valid values
Always
Never
OnFailure
Example
schedulerName
Pod’s schedulerName
Key | workload.$name.podSpec.schedulerName |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Example
priorityClassName
Pod’s priorityClassName
Key | workload.$name.podSpec.priorityClassName |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Example
hostname
Pod’s hostname
Key | workload.$name.podSpec.hostname |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
terminationGracePeriodSeconds
Pod’s terminationGracePeriodSeconds
Key | workload.$name.podSpec.terminationGracePeriodSeconds |
Type | int |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Example
nodeSelector
Pod’s nodeSelector
Key | workload.$name.podSpec.nodeSelector |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | See default here |
Example
topologySpreadConstraints
Pod’s topologySpreadConstraints
Key | workload.$name.podSpec.topologySpreadConstraints |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
hostAliases
Pod’s hostAliases
Key | workload.$name.podSpec.hostAliases |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
ip
Pod’s hostAliases ip
Key | workload.$name.podSpec.hostAliases.ip |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
hostnames
Pod’s hostAliases hostnames
Key | workload.$name.podSpec.hostAliases.hostnames |
Type | list of string |
Required | ✅ |
Helm tpl | ✅ (On each entry) |
Default | [] |
Example
dnsPolicy
Pod’s dnsPolicy
Key | workload.$name.podSpec.dnsPolicy |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Valid values
None
Default
ClusterFirst
ClusterFirstWithHostNet
Example
dnsConfig
Pod’s dnsConfig
Key | workload.$name.podSpec.dnsConfig |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
dnsConfig.nameservers
Pod’s dnsConfig nameservers
Key | workload.$name.podSpec.dnsConfig.nameservers |
Type | list of string |
Required | ❌ |
Helm tpl | ✅ (On each entry) |
Default | [] |
Example
dnsConfig.searches
Pod’s dnsConfig searches
Key | workload.$name.podSpec.dnsConfig.searches |
Type | list of string |
Required | ❌ |
Helm tpl | ✅ (On each entry) |
Default | [] |
Example
dnsConfig.options
Pod’s dnsConfig options
Key | workload.$name.podSpec.dnsConfig.options |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | [{"ndots": "1"}] |
Example
dnsConfig.options.name
Pod’s dnsConfig options name
Key | workload.$name.podSpec.dnsConfig.options.name |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
dnsConfig.options.value
Pod’s dnsConfig options value
Key | workload.$name.podSpec.dnsConfig.options.value |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
tolerations
Pod’s tolerations
Key | workload.$name.podSpec.tolerations |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
tolerations.operator
Pod’s tolerations operator
Key | workload.$name.podSpec.tolerations.operator |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Valid values
Equal
Exists
Example
tolerations.key
Pod’s tolerations key
Key | workload.$name.podSpec.tolerations.key |
Type | string |
Required | ❌/✅ |
Helm tpl | ✅ |
Default | "" |
Example
tolerations.value
Pod’s tolerations value
Key | workload.$name.podSpec.tolerations.value |
Type | string |
Required | ❌/✅ |
Helm tpl | ✅ |
Default | "" |
Example
tolerations.effect
Pod’s tolerations effect
Key | workload.$name.podSpec.tolerations.effect |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Valid values
NoExecute
NoSchedule
PreferNoSchedule
Example
tolerations.tolerationSeconds
Pod’s tolerations tolerationSeconds
Key | workload.$name.podSpec.tolerations.tolerationSeconds |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | unset |
Example
runtimeClassName
Pod’s runtimeClassName
Key | workload.$name.podSpec.runtimeClassName |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Example
securityContext
Pod’s securityContext
Key | workload.$name.podSpec.securityContext |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Default
Example
securityContext.fsGroup
Pod’s securityContext fsGroup
Key | workload.$name.podSpec.securityContext.fsGroup |
Type | int |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
securityContext.fsGroupChangePolicy
Pod’s securityContext fsGroupChangePolicy
Key | workload.$name.podSpec.securityContext.fsGroupChangePolicy |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Valid values
Always
OnRootMismatch
Example
securityContext.supplementalGroups
Pod’s securityContext supplementalGroups
Key | workload.$name.podSpec.securityContext.supplementalGroups |
Type | list of int |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
securityContext.sysctls
Key | workload.$name.podSpec.securityContext.sysctls |
Type | list of map |
Required | ❌ |
Helm tpl | ❌ |
Default | See default here |
Example
securityContext.sysctls.name
Pod’s securityContext sysctls name
Key | workload.$name.podSpec.securityContext.sysctls.name |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
securityContext.sysctls.value
Pod’s securityContext sysctls value
Key | workload.$name.podSpec.securityContext.sysctls.value |
Type | string |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
containers
Define container(s) for the workload
See Container for more information
Key | workload.$name.containers |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
initContainers
Define initContainer(s) for the workload
See Container for more information
Key | workload.$name.initContainers |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
Full Examples
Full examples for each workload type can be found here