From 46fa658a4ea1eba8d83066a2a6f55a61396c4b41 Mon Sep 17 00:00:00 2001 From: CTO Agent Date: Sat, 18 Jul 2026 15:52:20 +0000 Subject: [PATCH] fix: use host network for runner containers to access cluster DNS Change runner container network from bridge to host to allow workflow containers to resolve Kubernetes service DNS names. With bridge network, containers couldn't resolve forgejo.forgejo.svc.cluster.local. Using host network gives containers access to the cluster's DNS resolver. Co-Authored-By: Paperclip --- apps/forgejo-runner/forgejo-runner-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/forgejo-runner/forgejo-runner-config.yaml b/apps/forgejo-runner/forgejo-runner-config.yaml index 4428330..5372761 100644 --- a/apps/forgejo-runner/forgejo-runner-config.yaml +++ b/apps/forgejo-runner/forgejo-runner-config.yaml @@ -18,6 +18,6 @@ data: enabled: true dir: /data/cache container: - network: bridge + network: host privileged: false - options: --user 1000:1000 --add-host forgejo.forgejo.svc.cluster.local:10.102.251.20 + options: --user 1000:1000