From 8ce1f857a47e5561dce73e76fce92beffc4c90c5 Mon Sep 17 00:00:00 2001 From: wangbo Date: Wed, 29 Jul 2026 17:49:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(cluster):=20=E5=BB=B6=E9=95=BF=20Worker=20?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=8E=A2=E9=92=88=E4=BF=9D=E6=8A=A4=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Worker 在切换后恢复积压 River 任务时可能超过原 liveness 初始窗口,导致健康端口尚未监听就被误杀。增加最长 10 分钟 startupProbe,启动完成后仍沿用原 readiness 和 liveness。\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 452e62e..69f385a 100644 --- a/deploy/kubernetes/production/application.yaml +++ b/deploy/kubernetes/production/application.yaml @@ -307,6 +307,13 @@ spec: ports: - name: health containerPort: 8088 + startupProbe: + httpGet: + path: /healthz + port: health + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 120 readinessProbe: httpGet: path: /readyz @@ -425,6 +432,13 @@ spec: ports: - name: health containerPort: 8088 + startupProbe: + httpGet: + path: /healthz + port: health + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 120 readinessProbe: httpGet: path: /readyz