From 267742c7d7bab74edda1fcdf25623fc4124eb750 Mon Sep 17 00:00:00 2001 From: Oskar Kapala Date: Wed, 27 May 2026 14:52:32 +0200 Subject: [PATCH] vps/node-agent: add network_mode: host for control-plane health probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The _check_control_plane_health() method probes localhost:18180, which is the control-plane's mapped port. Inside a bridged container, localhost resolves to the container's own loopback — the probe always fails. host network mode shares the VPS host's network namespace so that localhost:18180 correctly reaches the control-plane. Co-Authored-By: Claude Sonnet 4.6 --- hosts/vps/runtime/node-agent/docker-compose.override.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/vps/runtime/node-agent/docker-compose.override.yml b/hosts/vps/runtime/node-agent/docker-compose.override.yml index 025d6c2..58c3f8c 100644 --- a/hosts/vps/runtime/node-agent/docker-compose.override.yml +++ b/hosts/vps/runtime/node-agent/docker-compose.override.yml @@ -3,3 +3,8 @@ services: environment: - NODE_NAME=vps - CHECK_INTERVAL=60 + # host network mode: node-agent on VPS shares the host's network namespace + # so that localhost:18180 resolves to the control-plane's exposed port. + # Without this, localhost inside the container is the container's own loopback + # and the _check_control_plane_health() probe would always fail. + network_mode: host