From 074e1a1b819d3b3d035d38a8f6141fee339781e1 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Sat, 16 Apr 2022 03:16:30 +0800 Subject: [PATCH] feat: add preStop probe to graceful shutdown+1 --- k8s-deploy-template.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 849b7aa..ad3c802 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -27,10 +27,8 @@ spec: protocol: TCP lifecycle: preStop: - httpGet: - scheme: HTTP - path: /actuator/offline - port: 1024 + exec: + command: [ "curl","http://127.0.0.1:1024/actuator/offline" ] livenessProbe: httpGet: scheme: HTTP -- GitLab