From e1e18dbe58c1a6ef3fa041acfee48721aa7f7504 Mon Sep 17 00:00:00 2001 From: wangbo Date: Thu, 30 Jul 2026 18:55:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(k3s):=20=E6=94=BE=E5=AE=BD=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E9=9A=94=E7=A6=BB=E6=8E=A2=E9=92=88=E5=AE=B9?= =?UTF-8?q?=E5=BF=8D=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免跨节点控制面短时拥塞导致主库被默认 30 秒 liveness 窗口误判并重启。\n\n保持隔离检查开启,将 livenessProbeTimeout 调整为 300 秒,并把隔离检查连接与请求超时调整为 5 秒。已通过线上 CRD 字段核验和 kubectl 服务端 dry-run。 --- deploy/kubernetes/production/database.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/kubernetes/production/database.yaml b/deploy/kubernetes/production/database.yaml index cbdaa46..a35a36a 100644 --- a/deploy/kubernetes/production/database.yaml +++ b/deploy/kubernetes/production/database.yaml @@ -72,6 +72,13 @@ spec: switchoverDelay: 60 stopDelay: 90 smartShutdownTimeout: 30 + livenessProbeTimeout: 300 + probes: + liveness: + isolationCheck: + enabled: true + connectionTimeout: 5000 + requestTimeout: 5000 bootstrap: initdb: database: easyai_ai_gateway