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: