deployment.md 2.0 KB

Deployment

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

Notes:

View common keys of workload in workload Documentation.

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


Examples:

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

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