diff --git a/deployment.yaml b/deployment.yaml index d05c631..c22feee 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -27,6 +27,13 @@ spec: env: - name: TZ value: Asia/Shanghai + lifecycle: + preStop: + exec: + command: + - "/bin/sh" + - "-c" + - "sleep 35" readinessProbe: httpGet: path: /actuator/health @@ -48,7 +55,7 @@ spec: limits: cpu: "1" memory: "2048Mi" - terminationGracePeriodSeconds: 30 + terminationGracePeriodSeconds: 40 strategy: type: RollingUpdate rollingUpdate: diff --git a/pom.xml b/pom.xml index a80586c..ac296a6 100644 --- a/pom.xml +++ b/pom.xml @@ -17,14 +17,14 @@ 3.0.46 - 3.0.44 - 3.0.44 - 3.0.44 - 3.0.44 - 3.0.44 - 3.0.44 - 3.0.44 - 3.0.44 + 3.0.46 + 3.0.46 + 3.0.46 + 3.0.46 + 3.0.46 + 3.0.46 + 3.0.46 + 3.0.46 17 ${java.version}