Commit e550cfec authored by Thomas Beermann's avatar Thomas Beermann
Browse files

make deployment strategy configurable

parent 1a8540fa
......@@ -10,6 +10,11 @@ metadata:
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.cerebrum.replicas }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: {{ .Values.cerebrum.rollingUpdate.maxUnavailable }}
maxSurge: {{ .Values.cerebrum.rollingUpdate.maxSurge }}
selector:
matchLabels:
app: {{ template "hifiscp.name" . }}-cerebrum
......
......@@ -10,6 +10,11 @@ metadata:
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.webapp.replicas }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: {{ .Values.webapp.rollingUpdate.maxUnavailable }}
maxSurge: {{ .Values.webapp.rollingUpdate.maxSurge }}
selector:
matchLabels:
app: {{ template "hifiscp.name" . }}-webapp
......
......@@ -7,6 +7,10 @@ cerebrum:
tag: latest
pullPolicy: Always
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
service:
type: ClusterIP
targetPort: 8090
......@@ -65,6 +69,10 @@ webapp:
tag: latest
pullPolicy: Always
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
service:
type: ClusterIP
targetPort: 8080
......
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