diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 849b7aa910aa47f171ce8edb8a249d5888c370ea..ad3c802e1f9d7be7378693ce360b68a14769c398 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