[CPS] Set postgres replica strategy 31/128231/1
authorBruno Sakoto <bruno.sakoto@bell.ca>
Thu, 31 Mar 2022 12:51:59 +0000 (08:51 -0400)
committerBruno Sakoto <bruno.sakoto@bell.ca>
Thu, 31 Mar 2022 15:29:48 +0000 (11:29 -0400)
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>
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 }}