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

View File

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

View File

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

View File

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