Unverified Commit fd5e4945 authored by Joseph Petersen's avatar Joseph Petersen Committed by GitHub

allow using recreate when updating deployment (#243)

parent e7e6493a
apiVersion: v1 apiVersion: v1
name: chronograf name: chronograf
version: 1.1.19 version: 1.1.20
appVersion: 1.8.8 appVersion: 1.8.8
description: Open-source web application written in Go and React.js that provides description: Open-source web application written in Go and React.js that provides
the tools to visualize your monitoring data and easily create alerting and automation the tools to visualize your monitoring data and easily create alerting and automation
......
...@@ -9,6 +9,11 @@ metadata: ...@@ -9,6 +9,11 @@ metadata:
heritage: "{{ .Release.Service }}" heritage: "{{ .Release.Service }}"
spec: spec:
replicas: {{ .Values.service.replicas }} replicas: {{ .Values.service.replicas }}
strategy:
type: {{ .Values.updateStrategy.type }}
{{- if eq .Values.updateStrategy.type "Recreate" }}
rollingUpdate: null
{{- end }}
selector: selector:
matchLabels: matchLabels:
app: {{ template "chronograf.fullname" . }} app: {{ template "chronograf.fullname" . }}
......
...@@ -131,3 +131,7 @@ envFromSecret: "" ...@@ -131,3 +131,7 @@ envFromSecret: ""
# - name: chronograf-output-influxdb2 # - name: chronograf-output-influxdb2
# mountPath: /var/lib/chronograf/conf.d # mountPath: /var/lib/chronograf/conf.d
# subPath: influxdb2.conf # subPath: influxdb2.conf
## Use Recreate when persistence is enabled
updateStrategy:
type: RollingUpdate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment