From 92027fc81cc7d223824187df8b07243522c296fb Mon Sep 17 00:00:00 2001 From: ximenchuifeng Date: Fri, 26 Jun 2026 08:28:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(chart):=20.NET=20=E5=90=8E=E7=AB=AF=20probe?= =?UTF-8?q?=20=E6=94=B9=E6=9E=81=E8=87=B4=E4=BF=9D=E5=AE=88=E5=80=BC=20+?= =?UTF-8?q?=20submodule=20=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _backend.tpl probe 原值(liveness delay=15 period=30,无 timeout/fail) 走 K8s 默认 timeout=1s fail=3,约 45s 即杀,.NET 冷启动连库常超时。 改为极致保守: - liveness: delay=120 timeout=15 period=30 fail=12 → 480s 才杀 - readiness: delay=60 timeout=10 period=30 fail=8 → 300s 才标 NotReady 影响 sso/agent-0/edge-0/ultra/gateway 共 5 个 .NET 服务。 helm template 验证:5 个 livenessProbe 全带上新值,无渲染错误。 同步更新 mixingx.edge submodule 指针(opcua Dockerfile ENTRYPOINT 修正)。 --- templates/_backend.tpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/_backend.tpl b/templates/_backend.tpl index 028fe73..7980b16 100644 --- a/templates/_backend.tpl +++ b/templates/_backend.tpl @@ -69,15 +69,19 @@ spec: path: /health port: http scheme: HTTP - initialDelaySeconds: 15 + initialDelaySeconds: 120 periodSeconds: 30 + timeoutSeconds: 15 + failureThreshold: 12 # 120 + 30×12 = 480s 才杀,容忍 .NET 冷启动连库 readinessProbe: httpGet: path: /alive port: http scheme: HTTP - initialDelaySeconds: 5 - periodSeconds: 10 + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 8 # 60 + 30×8 = 300s 才标 NotReady --- # Service: {{ .name }}