From e46ac5c8c4a821c636cbfc3cd18d9140617ae611 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Thu, 19 May 2022 00:32:01 +0800 Subject: [PATCH] Update k8s-deploy-template.yaml --- k8s-deploy-template.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 1b92903..97210bf 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -43,17 +43,22 @@ spec: preStop: exec: command: [ "curl","-X","POST","http://127.0.0.1:1024/actuator/offline" ] + startupProbe: + httpGet: + scheme: HTTP + path: /actuator/health + port: 1024 + failureThreshold: 6 + periodSeconds: 10 livenessProbe: httpGet: scheme: HTTP path: /actuator/health/liveness port: 1024 - initialDelaySeconds: 50 periodSeconds: 10 readinessProbe: httpGet: scheme: HTTP path: /actuator/health/readiness port: 1024 - initialDelaySeconds: 50 periodSeconds: 10 \ No newline at end of file -- GitLab