feat(notification): add deployment strategy and update health check parameters

This commit is contained in:
Nicolas 2025-09-26 09:02:17 +08:00
parent 0853ced5dc
commit 19754e6fb6
3 changed files with 23 additions and 8 deletions

View File

@ -21,8 +21,18 @@ spec:
app.kubernetes.io/managed-by: {{ .Release.Service }}
replicas: {{ .Values.notification.replicas }}
{{- 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:
type: Recreate
{{- end }}
{{- end }}
template:
metadata:

View File

@ -17,6 +17,11 @@ notification:
name: notification
tag: snapshot-11c52d6
imagePullPolicy: IfNotPresent
deploymentStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
ports:
- name: http
containerPort: 8003
@ -34,21 +39,21 @@ notification:
config:
path: /api/_/livez
port: 8003
initialDelaySeconds: 60
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 5
failureThreshold: 10
liveness:
type: httpGet
config:
path: /api/_/livez
port: 8003
initialDelaySeconds: 60
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 5
failureThreshold: 10
terminationGracePeriodSeconds: 30
services:
- name: notification-service

View File

@ -34,21 +34,21 @@ payment:
config:
path: /api/_/readyz
port: 8006
initialDelaySeconds: 5
initialDelaySeconds: 90
periodSeconds: 30
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 3
failureThreshold: 8
liveness:
type: httpGet
config:
path: /api/_/livez
port: 8006
initialDelaySeconds: 5
initialDelaySeconds: 90
periodSeconds: 15
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 3
failureThreshold: 8
terminationGracePeriodSeconds: 30
services:
- name: payment-service