From 5aa83d739e633b12cb504157747636734d82d2ad Mon Sep 17 00:00:00 2001 From: chenbowen Date: Wed, 7 Jan 2026 19:49:11 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=B7=BB=E5=8A=A0=20prestop=20=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=B5=81=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: