fix(chart): set probe timeoutSeconds to 5s to avoid health-check timeouts

This commit is contained in:
2026-06-30 17:31:57 +07:00
parent 1298f739e5
commit d0b3d16ace
2 changed files with 3 additions and 0 deletions

View File

@@ -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 }}

View File

@@ -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)