停用 CICD 舊叢集副作用
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
OoO
2026-05-13 19:19:15 +08:00
parent c5d077ff77
commit bd6310365e
7 changed files with 134 additions and 169 deletions

View File

@@ -229,7 +229,7 @@ class CodeReviewPipeline:
# ADR-027 Phase 2 N3lazy resolve Hermes 主機GCP 優先 / 111 備援),
# 避開 import-time freeze。Phase 53改用 services.ollama_service.get_provider_tag
# 統一函式,支援 K8s Nginx Proxy110:11435/11436
# 統一函式,支援 110 Nginx Proxy11435/11436
hermes_url = get_hermes_url()
from services.ollama_service import get_provider_tag
provider_tag = get_provider_tag(hermes_url)

View File

@@ -167,7 +167,7 @@ def resolve_ollama_host(primary: str = OLLAMA_HOST_PRIMARY,
def get_host_label(host: str) -> str:
"""將 IP/URL 轉換為易讀的主機標籤
Phase 53支援 K8s 環境的 Nginx Proxy110:11435/11436 → GCP
Phase 53支援 110 Nginx Proxy11435/11436 → GCP
判斷順序:直連 GCP IP > Nginx 轉發 port > 內網 IP > 本地。
"""
if not host:
@@ -177,7 +177,7 @@ def get_host_label(host: str) -> str:
return "GCP-SSD"
if "34.21.145.224" in host:
return "GCP-SSD-2"
# Nginx Proxy 轉發(K8s 環境,110 跳板代理 GCP
# Nginx Proxy 轉發110 跳板代理 GCP
if "192.168.0.110:11435" in host:
return "GCP-SSDvia Nginx 110"
if "192.168.0.110:11436" in host: