diff --git a/charts/dbiz-springboot/templates/deployment.yaml b/charts/dbiz-springboot/templates/deployment.yaml index a0dd1db..44bfc6a 100644 --- a/charts/dbiz-springboot/templates/deployment.yaml +++ b/charts/dbiz-springboot/templates/deployment.yaml @@ -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 }} diff --git a/charts/dbiz-springboot/values.yaml b/charts/dbiz-springboot/values.yaml index 57ea24c..4a4c30b 100644 --- a/charts/dbiz-springboot/values.yaml +++ b/charts/dbiz-springboot/values.yaml @@ -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)