From 4f44b400477488b7ac88be3f491d2c9b677818b3 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Tue, 4 Apr 2023 15:39:35 +0800 Subject: [PATCH] Remove unused k8s lifecycle --- k8s-deploy-template.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 70f9b43..f6a9914 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -20,10 +20,10 @@ spec: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - - key: schbrain.deploy - operator: In - values: - - ${NODE_TAG} + - key: schbrain.deploy + operator: In + values: + - ${NODE_TAG} terminationGracePeriodSeconds: 20 initContainers: - name: ${APP_NAME}-init @@ -46,10 +46,6 @@ spec: protocol: TCP - containerPort: 1024 protocol: TCP - lifecycle: - preStop: - exec: - command: [ "curl","-X","POST","http://127.0.0.1:1024/actuator/offline" ] startupProbe: httpGet: scheme: HTTP -- GitLab