diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 755daf0..aae57e6 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -110,3 +110,5 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + strategy: + type: {{ .Values.updateStrategy.type }} \ No newline at end of file diff --git a/values.yaml b/values.yaml index a40c33c..09ff6a6 100644 --- a/values.yaml +++ b/values.yaml @@ -88,6 +88,10 @@ persistence: # -- actual storageClass storageClass: "" +# when persistence.enabled is set to true, strategy should be changed to 'Recreate' +updateStrategy: + type: RollingUpdate + # -- @ignore resources: {} # We usually recommend not to specify default resources and to leave this as a conscious