fix: 后端健康检查改用TCP探针,修复CrashLoopBackOff
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m4s
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:
parent
f6d50055d1
commit
3e7f0c028f
@ -41,24 +41,16 @@ spec:
|
|||||||
- name: CORS_ORIGINS
|
- name: CORS_ORIGINS
|
||||||
value: "https://airlabs-manage-web.airlabs.art"
|
value: "https://airlabs-manage-web.airlabs.art"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /api/health/
|
|
||||||
port: 8000
|
port: 8000
|
||||||
httpHeaders:
|
|
||||||
- name: Host
|
|
||||||
value: localhost
|
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 3
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /api/health/
|
|
||||||
port: 8000
|
port: 8000
|
||||||
httpHeaders:
|
initialDelaySeconds: 10
|
||||||
- name: Host
|
|
||||||
value: localhost
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user