hermes: expose Switchyard worker health

This commit is contained in:
jenkins 2026-08-11 22:38:05 -03:00
parent 891495db16
commit 7bb283be69
3 changed files with 8 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class Handler(BaseHTTPRequestHandler):
def main() -> None:
server = ThreadingHTTPServer(("127.0.0.1", PORT), Handler)
server = ThreadingHTTPServer(("0.0.0.0", PORT), Handler)
server.serve_forever()

View File

@ -19,7 +19,7 @@ spec:
labels:
app: hermes-switchyard
annotations:
ai.bstein.dev/config-rev: "20260811-switchyard-authority-v4"
ai.bstein.dev/config-rev: "20260811-switchyard-authority-v5"
prometheus.io/scrape: "true"
prometheus.io/port: "9005"
prometheus.io/path: /metrics

View File

@ -894,6 +894,12 @@ def test_switchyard_active_state_uses_a_relocatable_rwx_claim():
]
def test_worker_route_broker_accepts_pod_network_health_checks():
"""Kubelet probes the pod IP, so the broker cannot bind to loopback only."""
script = (SCRIPTS / "worker_route_broker.py").read_text()
assert 'ThreadingHTTPServer(("0.0.0.0", PORT), Handler)' in script
def test_switchyard_network_boundary_allows_vault_bootstrap():
"""The pre-populate init container must reach Vault before routing starts."""
documents = [