From 012823adffd0bd3c61d87fcb581e51fd1900fe2f Mon Sep 17 00:00:00 2001 From: wangbo Date: Wed, 29 Jul 2026 19:18:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(cluster):=20=E4=BF=9D=E6=8A=A4=20API=20?= =?UTF-8?q?=E6=8C=81=E4=B9=85=E9=98=9F=E5=88=97=E6=81=A2=E5=A4=8D=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E9=98=B6=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit API 角色启动时同样会恢复持久队列状态,积压较多时可能超过 liveness 初始窗口并被误杀。为两地 API 增加最长 10 分钟 startupProbe,旧 Pod 在新 Pod Ready 前继续服务。\n\n验证:kubectl kustomize、服务端 dry-run、生产滚动更新。 --- deploy/kubernetes/production/application.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/deploy/kubernetes/production/application.yaml b/deploy/kubernetes/production/application.yaml index 69f385a..77c0651 100644 --- a/deploy/kubernetes/production/application.yaml +++ b/deploy/kubernetes/production/application.yaml @@ -71,6 +71,13 @@ spec: ports: - name: http containerPort: 8088 + startupProbe: + httpGet: + path: /api/v1/healthz + port: http + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 120 readinessProbe: httpGet: path: /api/v1/readyz @@ -189,6 +196,13 @@ spec: ports: - name: http containerPort: 8088 + startupProbe: + httpGet: + path: /api/v1/healthz + port: http + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 120 readinessProbe: httpGet: path: /api/v1/readyz