fix(chart): set probe timeoutSeconds to 5s to avoid health-check timeouts
This commit is contained in:
@@ -39,6 +39,7 @@ spec:
|
||||
port: {{ .Values.service.port }}
|
||||
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.probe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.probe.timeoutSeconds | default 5 }}
|
||||
failureThreshold: {{ .Values.probe.failureThreshold }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@@ -46,6 +47,7 @@ spec:
|
||||
port: {{ .Values.service.port }}
|
||||
initialDelaySeconds: {{ add .Values.probe.initialDelaySeconds 60 }}
|
||||
periodSeconds: {{ .Values.probe.periodSeconds }}
|
||||
timeoutSeconds: {{ .Values.probe.timeoutSeconds | default 5 }}
|
||||
failureThreshold: {{ .Values.probe.failureThreshold }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
|
||||
@@ -14,6 +14,7 @@ probe:
|
||||
path: /actuator/health
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5 # /actuator/health gọi DB/Redis/Kafka nên >1s, tránh probe timeout
|
||||
failureThreshold: 30 # cho phép start chậm (Liquibase migrate)
|
||||
|
||||
# Map env tự do — KHÔNG fix tên (mỗi service tên env khác nhau)
|
||||
|
||||
Reference in New Issue
Block a user