From 31702da432d81f6f71dfaaa2db4ee407159eccde Mon Sep 17 00:00:00 2001 From: sarthak gupta Date: Wed, 6 Dec 2023 17:58:44 +0530 Subject: [PATCH] chore(helm): add rolling update strategy --- charts/vdp/templates/controller-vdp/deployment.yaml | 5 ++++- charts/vdp/templates/pipeline-backend/deployment.yaml | 5 ++++- charts/vdp/values.yaml | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/charts/vdp/templates/controller-vdp/deployment.yaml b/charts/vdp/templates/controller-vdp/deployment.yaml index a895e8de7..8b9143a53 100644 --- a/charts/vdp/templates/controller-vdp/deployment.yaml +++ b/charts/vdp/templates/controller-vdp/deployment.yaml @@ -10,7 +10,10 @@ metadata: spec: strategy: type: {{ .Values.updateStrategy.type }} - {{- if eq .Values.updateStrategy.type "Recreate" }} + 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 ce2625888..68a23123a 100644 --- a/charts/vdp/templates/pipeline-backend/deployment.yaml +++ b/charts/vdp/templates/pipeline-backend/deployment.yaml @@ -13,7 +13,10 @@ metadata: spec: strategy: type: {{ .Values.updateStrategy.type }} - {{- if eq .Values.updateStrategy.type "Recreate" }} + 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 4c24d10a1..747397002 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