mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
deployment make sure to restart pods, restart policy
This commit is contained in:
parent
58b624f2d6
commit
0ce7c637f4
@ -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:
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user