From 6b41d876e5e0358542bd07b207973494b0f68b7f Mon Sep 17 00:00:00 2001 From: Bruno Sakoto Date: Thu, 31 Mar 2022 08:51:59 -0400 Subject: [CPS] Set postgres replica strategy Strategy is set to Recreate instead of using default RollingUpdate Issue-ID: CPS-894 Change-Id: Ia5a5f54512baa6445a161c43075f0c29679691d0 Signed-off-by: Bruno Sakoto --- kubernetes/common/postgres/templates/_deployment.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/common/postgres/templates/_deployment.tpl b/kubernetes/common/postgres/templates/_deployment.tpl index 341b4c86c7..1051aaff0b 100644 --- a/kubernetes/common/postgres/templates/_deployment.tpl +++ b/kubernetes/common/postgres/templates/_deployment.tpl @@ -33,6 +33,8 @@ metadata: name: "{{ index $dot.Values "container" "name" $pgMode }}" spec: replicas: 1 + strategy: + type: Recreate selector: matchLabels: app: {{ include "common.name" $dot }}-{{ $pgMode }} -- cgit 1.2.3-korg