diff --git a/templates/deployment.yaml b/templates/deployment.yaml index ca2d8d0..d723c7a 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: {{ .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