Avoid Kubernetes service environment collision
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

This commit is contained in:
tegwick 2026-07-27 23:02:34 +02:00
parent 44f2b2608b
commit 2869c1030d

View file

@ -48,7 +48,9 @@ def create_application() -> PortalApplication:
def main() -> None:
host = os.environ.get("USER_ENGINE_HOST", "0.0.0.0")
port = int(os.environ.get("USER_ENGINE_PORT", "8080"))
# ``USER_ENGINE_PORT`` is reserved by Kubernetes service-link injection
# (for example ``tcp://10.43.0.1:8080``), so use an unambiguous setting.
port = int(os.environ.get("USER_ENGINE_HTTP_PORT", "8080"))
with make_server(host, port, create_application()) as server:
server.serve_forever()