From 614cc591a518cb099ce1055e2cb140b20bf5facd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= Date: Sun, 1 Jul 2018 21:43:18 +0200 Subject: [PATCH] [postgresql] Set update strategy to Recreate. (#6343) * [postgresql] Set update strategy to Recreate. We NEVER want two different postgres instances to be up at the same time using the same database files, or corruption can occur. At the cost of having a few seconds of downtime at upgrade time. * Update Chart.yaml --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 368dc0d8c7..b1002ae20d 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 0.14.4 +version: 0.15.0 appVersion: 9.6.2 description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/templates/deployment.yaml b/stable/postgresql/templates/deployment.yaml index 0d621a44ce..9d03d42722 100644 --- a/stable/postgresql/templates/deployment.yaml +++ b/stable/postgresql/templates/deployment.yaml @@ -20,6 +20,8 @@ spec: matchLabels: app: {{ template "postgresql.name" . }} release: {{ .Release.Name }} + strategy: + type: Recreate template: metadata: labels: