Files
charts/library/common/1.0.0/docs/deployment.md
T
2023-01-31 16:24:44 +02:00

2.1 KiB

Deployment

Key Type Required Helm Template Default Description
controllers.[controller-name].strategy string Recreate Define the strategy of the controller (Recreate, RollingUpdate)
controllers.[controller-name].rollingUpdate dict {} Holds the rollingUpdate options, Only when strategy is RollingUpdate
controllers.[controller-name].rollingUpdate.maxUnavailable int Define the maxUnavailable, Only when strategy is RollingUpdate
controllers.[controller-name].rollingUpdate.maxSurge int Define the maxSurge, Only when strategy is RollingUpdate

Notes:

View common keys of controllers in Controllers Documentation.

Value of controllers.[controller-name].podSpec.restartPolicy can only be Always for this type of controller


Examples:

controllers:
  controller-name:
    enabled: true
    primary: true
    type: Deployment
    replicas: 1
    revisionHistoryLimit: 3
    strategy: Recreate
    rollingUpdate:
      maxUnavailable: 1
      maxSurge: 1
    podSpec: {}

  other-controller-name:
    enabled: true
    primary: false
    type: Deployment
    labels: {}
    annotations: {}
    replicas: 1
    revisionHistoryLimit: 3
    strategy: Recreate
    rollingUpdate:
      maxUnavailable: 1
      maxSurge: 1
    podSpec: {}