From 012ba0127481023de4cdcb4e9b77ee5e10f8e5ad Mon Sep 17 00:00:00 2001 From: "Zhang Rong(Jon)" Date: Wed, 13 Nov 2024 16:13:00 +0800 Subject: [PATCH] Fix application upgrade failure with Helm The deployment strategy defaults to a rolling update, which can cause errors during the upgrade process. This commit modifies the strategy to "Recreate," which stops the existing pod first before initializing the new one. TEST PLAN: - Upgrade the application and it completes without issues Change-Id: I52d86bdda5b8136401448d6e4b85743f28fda79c Signed-off-by: Zhang Rong(Jon) (cherry picked from commit 3bc4bc52a8821490be105719be2ad5bb25039133) --- charts/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index 32ec7ad..5b7967e 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -25,6 +25,8 @@ spec: selector: matchLabels: app: o2api + strategy: + type: Recreate template: metadata: labels: -- 2.16.6