feat(notification): add deployment strategy and update health check parameters
This commit is contained in:
parent
0853ced5dc
commit
19754e6fb6
@ -21,8 +21,18 @@ spec:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
replicas: {{ .Values.notification.replicas }}
|
replicas: {{ .Values.notification.replicas }}
|
||||||
{{- if .Values.logIngest.enabled }}
|
{{- if .Values.logIngest.enabled }}
|
||||||
|
{{- if .Values.notification.deploymentStrategy }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.notification.deploymentStrategy.type }}
|
||||||
|
{{- if eq .Values.notification.deploymentStrategy.type "RollingUpdate" }}
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: {{ .Values.notification.deploymentStrategy.rollingUpdate.maxSurge }}
|
||||||
|
maxUnavailable: {{ .Values.notification.deploymentStrategy.rollingUpdate.maxUnavailable }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@ -17,6 +17,11 @@ notification:
|
|||||||
name: notification
|
name: notification
|
||||||
tag: snapshot-11c52d6
|
tag: snapshot-11c52d6
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
deploymentStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 1
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8003
|
containerPort: 8003
|
||||||
@ -34,21 +39,21 @@ notification:
|
|||||||
config:
|
config:
|
||||||
path: /api/_/livez
|
path: /api/_/livez
|
||||||
port: 8003
|
port: 8003
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 120
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 5
|
failureThreshold: 10
|
||||||
liveness:
|
liveness:
|
||||||
type: httpGet
|
type: httpGet
|
||||||
config:
|
config:
|
||||||
path: /api/_/livez
|
path: /api/_/livez
|
||||||
port: 8003
|
port: 8003
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 120
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 5
|
failureThreshold: 10
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
services:
|
services:
|
||||||
- name: notification-service
|
- name: notification-service
|
||||||
|
|||||||
@ -34,21 +34,21 @@ payment:
|
|||||||
config:
|
config:
|
||||||
path: /api/_/readyz
|
path: /api/_/readyz
|
||||||
port: 8006
|
port: 8006
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 90
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 8
|
||||||
liveness:
|
liveness:
|
||||||
type: httpGet
|
type: httpGet
|
||||||
config:
|
config:
|
||||||
path: /api/_/livez
|
path: /api/_/livez
|
||||||
port: 8006
|
port: 8006
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 90
|
||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 8
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
services:
|
services:
|
||||||
- name: payment-service
|
- name: payment-service
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user