diff --git a/charts/vdp/templates/controller-vdp/deployment.yaml b/charts/vdp/templates/controller-vdp/deployment.yaml index e0cd9a94..322a59e4 100644 --- a/charts/vdp/templates/controller-vdp/deployment.yaml +++ b/charts/vdp/templates/controller-vdp/deployment.yaml @@ -10,7 +10,11 @@ metadata: spec: strategy: type: {{ .Values.updateStrategy.type }} - {{- if eq .Values.updateStrategy.type "Recreate" }} + {{- if eq .Values.updateStrategy.type "RollingUpdate" }} + rollingUpdate: + maxSurge: {{ .Values.updateStrategy.rollingUpdate.maxSurge }} + maxUnavailable: {{ .Values.updateStrategy.rollingUpdate.maxUnavailable }} + {{- else}} rollingUpdate: null {{- end }} {{- if not .Values.controllerVDP.autoscaling.enabled }} diff --git a/charts/vdp/templates/pipeline-backend/deployment.yaml b/charts/vdp/templates/pipeline-backend/deployment.yaml index f07ff2bc..751e1a4b 100644 --- a/charts/vdp/templates/pipeline-backend/deployment.yaml +++ b/charts/vdp/templates/pipeline-backend/deployment.yaml @@ -13,7 +13,11 @@ metadata: spec: strategy: type: {{ .Values.updateStrategy.type }} - {{- if eq .Values.updateStrategy.type "Recreate" }} + {{- if eq .Values.updateStrategy.type "RollingUpdate" }} + rollingUpdate: + maxSurge: {{ .Values.updateStrategy.rollingUpdate.maxSurge }} + maxUnavailable: {{ .Values.updateStrategy.rollingUpdate.maxUnavailable }} + {{- else}} rollingUpdate: null {{- end }} {{- if not .Values.pipelineBackend.autoscaling.enabled }} diff --git a/charts/vdp/values.yaml b/charts/vdp/values.yaml index f28817fd..9287c138 100644 --- a/charts/vdp/values.yaml +++ b/charts/vdp/values.yaml @@ -8,6 +8,9 @@ fullnameOverride: "" # Set it as "Recreate" when "RWM" for volumes isn't supported updateStrategy: type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 # -- Logging level: debug, info, warning, error or fatal logLevel: info # -- Enable development mode