Skip to content

controllers

Define the Pod controllers to be generated by the chart. Each key is a controller identifier. Supported types: deployment (default), statefulset, daemonset, cronjob, job.

object

Keys are identifiers for controllers instances.

controllers:
main:
enabled: true
# ... configuration
secondary:
enabled: true
# ... configuration
controllers:
main:
containers:
main:
image:
repository: nginx
tag: latest

Available properties:

PropertyTypeRequiredDefaultDescription
annotationsobject / nullNo-Annotations to set on the item. Keys and values support H…
applyDefaultContainerOptionsToInitContainersbooleanNotrueApply defaultContainerOptions to initContainers.
containersobjectNo-Containers as dictionary items.
defaultContainerOptionsobjectNo-Default options for all (init)Containers. Each can be ove…
defaultContainerOptionsStrategystringNooverwriteStrategy for default container options. overwrite: use co…
enabledbooleanNotrueSet to false to disable the controller.
extraSelectorLabelsobjectNo-Additional labels identifying this controller’s pods…
forceRenamestringNo-Override the default resource name. Mutually exclusive wi…
horizontalPodAutoscalerobjectNo-HorizontalPodAutoscaler configuration for this controller…
initContainersobjectNo-InitContainers as dictionary items.
labelsobject / nullNo-Labels to set on the item. Keys and values support Helm t…
podobjectNo-Pod-level options for this controller.
podDisruptionBudgetobjectNo-PodDisruptionBudget Policy for this controller.
prefixstringNo“Prefix to prepend to the resource name. Mutually exclusiv…
replicasinteger / nullNo1Number of desired pods. When a HorizontalPodAutoscaler is…
revisionHistoryLimitintegerNo-ReplicaSet revision history limit.
rollingUpdateobjectNo-Rolling update options. Only valid when strategy is `Roll…
serviceAccountobjectNo-ServiceAccount used by the controller. Only use one of `n…
strategystringNoRecreateController upgrade strategy. Valid values: Recreate or …
suffixstringNo-Suffix to append to the resource name. Defaults to the re…
typestringNodeploymentController type. Supported values: deployment, daemonset,…

Annotations to set on the item. Keys and values support Helm templating.

Strategy for default container options. overwrite: use container-level options if set. merge: merge container-level options with defaults.

Allowed values: overwrite, merge

Additional labels identifying this controller’s pods. Included in pod labels and generated selectors for workloads, Services, policies, PodMonitors, disruption budgets and default topology spread constraints. Keys and values support Helm templating. These labels override the standard selector labels and take precedence over regular pod labels. Resource-specific extraSelectorLabels apply only to that resource’s selector. Changing controller selector labels on an existing workload may require recreating it because workload selectors are immutable.

Override the default resource name. Mutually exclusive with prefix and suffix.

Labels to set on the item. Keys and values support Helm templating.

Prefix to prepend to the resource name. Mutually exclusive with forceRename.

Number of desired pods. When a HorizontalPodAutoscaler is configured, replicas is automatically suppressed on the controller and propagated to HPA minReplicas if not explicitly set.

Controller upgrade strategy. Valid values: Recreate or RollingUpdate.

Allowed values: Recreate, RollingUpdate

Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.

Controller type. Supported values: deployment, daemonset, statefulset, cronjob, job.

Allowed values: deployment, statefulset, daemonset, cronjob, job