[CPS] Set postgres replica strategy 01/128301/5 istanbul
authorBruno Sakoto <bruno.sakoto@bell.ca>
Thu, 31 Mar 2022 12:51:59 +0000 (08:51 -0400)
committerFiachra Corcoran <fiachra.corcoran@est.tech>
Wed, 4 May 2022 14:02:14 +0000 (14:02 +0000)
Strategy is set to Recreate instead of using default RollingUpdate

Issue-ID: CPS-894
Change-Id: Ia5a5f54512baa6445a161c43075f0c29679691d0
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
(cherry picked from commit 6b41d876e5e0358542bd07b207973494b0f68b7f)

kubernetes/common/postgres/templates/_deployment.tpl

index 341b4c8..1051aaf 100644 (file)
@@ -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 }}