fix: 后端健康检查改用TCP探针,修复CrashLoopBackOff
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m4s

后端没有/api/health/路由,HTTP探针返回404导致Pod被反复重启,
改用tcpSocket探针检测8000端口即可。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
zyc 2026-04-07 16:25:23 +08:00
parent f6d50055d1
commit 3e7f0c028f

View File

@ -41,24 +41,16 @@ spec:
- name: CORS_ORIGINS
value: "https://airlabs-manage-web.airlabs.art"
livenessProbe:
httpGet:
path: /api/health/
tcpSocket:
port: 8000
httpHeaders:
- name: Host
value: localhost
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/health/
tcpSocket:
port: 8000
httpHeaders:
- name: Host
value: localhost
initialDelaySeconds: 15
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3