From e2c41e21073dad54bbc4111994de04ef77965c42 Mon Sep 17 00:00:00 2001 From: Markus Kepert Date: Fri, 9 Jul 2021 16:09:15 +0200 Subject: [PATCH 1/2] Explcit use recreate update strategy --- templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index ca2d8d0..15c2ddc 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -8,6 +8,8 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + strategy: + type: Recreate selector: matchLabels: {{- include "n8n.selectorLabels" . | nindent 6 }} From 1029edec07a59445acdc8c8451a95fe72c2ffa0e Mon Sep 17 00:00:00 2001 From: Markus Kepert Date: Mon, 23 Aug 2021 22:35:42 +0200 Subject: [PATCH 2/2] configurable deployment stratgey --- templates/deployment.yaml | 2 +- values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 15c2ddc..d723c7a 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -9,7 +9,7 @@ spec: replicas: {{ .Values.replicaCount }} {{- end }} strategy: - type: Recreate + type: {{ .Values.deploymentStrategy.type }} selector: matchLabels: {{- include "n8n.selectorLabels" . | nindent 6 }} diff --git a/values.yaml b/values.yaml index 2947915..c2e6aac 100644 --- a/values.yaml +++ b/values.yaml @@ -135,6 +135,9 @@ persistence: replicaCount: 1 +deploymentStrategy: + type: "Recreate" + image: repository: n8nio/n8n pullPolicy: IfNotPresent