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.
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.
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.
podobjectNo-Pod-level options for this controller.
podDisruptionBudgetobjectNo-PodDisruptionBudget Policy for this controller.
prefixstringNoPrefix 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,…

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

Allowed values: overwrite, merge

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

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