fix(cluster): 保护 API 持久队列恢复启动阶段

API 角色启动时同样会恢复持久队列状态,积压较多时可能超过 liveness 初始窗口并被误杀。为两地 API 增加最长 10 分钟 startupProbe,旧 Pod 在新 Pod Ready 前继续服务。\n\n验证:kubectl kustomize、服务端 dry-run、生产滚动更新。
This commit is contained in:
2026-07-29 19:18:42 +08:00
parent d810881901
commit 012823adff
@@ -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