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 }}
|
port: {{ .Values.service.port }}
|
||||||
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
|
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
|
||||||
periodSeconds: {{ .Values.probe.periodSeconds }}
|
periodSeconds: {{ .Values.probe.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probe.timeoutSeconds | default 5 }}
|
||||||
failureThreshold: {{ .Values.probe.failureThreshold }}
|
failureThreshold: {{ .Values.probe.failureThreshold }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
@@ -46,6 +47,7 @@ spec:
|
|||||||
port: {{ .Values.service.port }}
|
port: {{ .Values.service.port }}
|
||||||
initialDelaySeconds: {{ add .Values.probe.initialDelaySeconds 60 }}
|
initialDelaySeconds: {{ add .Values.probe.initialDelaySeconds 60 }}
|
||||||
periodSeconds: {{ .Values.probe.periodSeconds }}
|
periodSeconds: {{ .Values.probe.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probe.timeoutSeconds | default 5 }}
|
||||||
failureThreshold: {{ .Values.probe.failureThreshold }}
|
failureThreshold: {{ .Values.probe.failureThreshold }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ probe:
|
|||||||
path: /actuator/health
|
path: /actuator/health
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 10
|
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)
|
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)
|
# 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