deployment make sure to restart pods, restart policy

This commit is contained in:
Ulf Gebhardt 2021-02-23 17:54:00 +01:00
parent 58b624f2d6
commit 0ce7c637f4
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
4 changed files with 17 additions and 4 deletions

View File

@ -16,8 +16,7 @@ spec:
progressDeadlineSeconds: {{ .Values.BACKEND.PROGRESS_DEADLINE_SECONDS }}
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: "100%"
maxUnavailable: 1
selector:
matchLabels:
app: {{ .Release.Name }}-backend
@ -25,6 +24,8 @@ spec:
metadata:
annotations:
backup.velero.io/backup-volumes: uploads
# make sure the pod is redeployed
rollme: {{ randAlphaNum 5 | quote }}
labels:
app: {{ .Release.Name }}-backend
spec:

View File

@ -11,6 +11,9 @@ metadata:
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
app: {{ .Release.Name }}-maintenance
@ -18,6 +21,8 @@ spec:
metadata:
labels:
app: {{ .Release.Name }}-maintenance
# make sure the pod is redeployed
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- name: maintenance

View File

@ -14,8 +14,7 @@ spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: "100%"
maxUnavailable: 1
selector:
matchLabels:
app: {{ .Release.Name }}-neo4j
@ -24,6 +23,8 @@ spec:
name: neo4j
annotations:
backup.velero.io/backup-volumes: neo4j-data
# make sure the pod is redeployed
rollme: {{ randAlphaNum 5 | quote }}
labels:
app: {{ .Release.Name }}-neo4j
spec:

View File

@ -14,11 +14,17 @@ spec:
replicas: {{ .Values.WEBAPP.REPLICAS }}
minReadySeconds: {{ .Values.WEBAPP.MIN_READY_SECONDS }}
progressDeadlineSeconds: {{ .Values.WEBAPP.PROGRESS_DEADLINE_SECONDS }}
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
app: {{ .Release.Name }}-webapp
template:
metadata:
annotations:
# make sure the pod is redeployed
rollme: {{ randAlphaNum 5 | quote }}
labels:
app: {{ .Release.Name }}-webapp
spec: