From 1c43570ad49a31e06978a7aa42c438b526df367e Mon Sep 17 00:00:00 2001 From: Yuan Fang Date: Wed, 21 Jun 2023 14:55:17 +0800 Subject: [PATCH] add readinessProbe Signed-off-by: Yuan Fang --- helm/templates/statefulset.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helm/templates/statefulset.yaml b/helm/templates/statefulset.yaml index 854ad2a..d7898e9 100644 --- a/helm/templates/statefulset.yaml +++ b/helm/templates/statefulset.yaml @@ -69,6 +69,14 @@ spec: scheme: HTTP port: {{ .Values.nacos.serverPort }} path: /nacos/v1/console/health/liveness + readinessProbe: + initialDelaySeconds: 10 + periodSeconds: 5 + timeoutSeconds: 10 + httpGet: + scheme: HTTP + port: {{ .Values.nacos.serverPort }} + path: /nacos/v1/console/health/readiness ports: - name: http containerPort: {{ .Values.nacos.serverPort }}