fix(host_aggregator): 修正四台主機 probe 端點錯誤導致全部顯示 unhealthy
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 12m1s

- 110: Harbor http→tcp(5000), Docker 2375→Gitea tcp(3001)
- 120: K3s 6443 https(401誤判)→tcp, 移除 Traefik 80(closed)
- 188: OpenClaw 8089→8088 (實際端口)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-09 19:52:34 +08:00
parent 8c2983b70a
commit 21567a7a6d

View File

@@ -276,14 +276,18 @@ async def _http_probe(
# Service definitions: (name, port, probe_type, path_or_none)
# probe_type: "tcp" | "http" | "https"
# 2026-04-09 Claude Sonnet 4.6: 修正 HOST_CONFIGS probe 端點
# - 110: Harbor→tcp(5000), Docker 2375→Gitea tcp(3001)
# - 120: K3s 6443 https→tcp(401 被誤判 down), Traefik 80 closed→刪除
# - 188: OpenClaw 8089→8088 (實際端口)
HOST_CONFIGS = {
"192.168.0.110": {
"name": "DevOps 金庫",
"role": HostRole.DEVOPS,
"services": [
("Harbor", 5000, "http", "/api/v2/"),
("Harbor", 5000, "tcp", None), # http /api/v2/ 回 HTML改 tcp
("Gitea", 3001, "tcp", None), # CI/CD 主倉,取代 Docker 2375
("GH Runner", 3000, "tcp", None),
("Docker", 2375, "tcp", None),
],
},
"192.168.0.112": {
@@ -298,8 +302,7 @@ HOST_CONFIGS = {
"name": "K3s Master",
"role": HostRole.K3S,
"services": [
("K3s API", 6443, "https", "/healthz"),
("Traefik", 80, "http", "/"),
("K3s API", 6443, "tcp", None), # https /healthz 回 401 被誤判,改 tcp
("awoooi-prod", 32335, "tcp", None),
],
},
@@ -311,7 +314,7 @@ HOST_CONFIGS = {
("PostgreSQL", 5432, "tcp", None),
("Redis", 6380, "tcp", None),
("Ollama", 11434, "http", "/api/tags"),
("OpenClaw", 8089, "http", "/health"),
("OpenClaw", 8088, "http", "/health"), # 修正: 8089→8088
("SigNoz", 3301, "http", "/api/v1/health"),
],
},