From 27eef79d54b54b666327935434600b57509cbdd8 Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Wed, 17 Sep 2025 17:24:52 +0200 Subject: [PATCH] Allow setting the MTU of nested Docker daemon in DinD mode When running DinD it's common to need a lower MTU on the nested Docker bridge. --- charts/gha-runner-scale-set/templates/_helpers.tpl | 1 + charts/gha-runner-scale-set/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index 9dfb615f..ee4ee860 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -101,6 +101,7 @@ args: - dockerd - --host=unix:///var/run/docker.sock - --group=$(DOCKER_GROUP_GID) + - --mtu={{ default 1450 (dig "dind" "mtu" 1450 .Values.containerMode) }} env: - name: DOCKER_GROUP_GID value: "123" diff --git a/charts/gha-runner-scale-set/values.yaml b/charts/gha-runner-scale-set/values.yaml index 5a0f4ca3..c79b61ae 100644 --- a/charts/gha-runner-scale-set/values.yaml +++ b/charts/gha-runner-scale-set/values.yaml @@ -116,6 +116,8 @@ githubConfigSecret: ## empty, and configuration should be applied to the template. # containerMode: # type: "dind" ## type can be set to "dind", "kubernetes", or "kubernetes-novolume" +# dind: +# mtu: 1450 ## Optional, for DinD mode only. Defaults to 1450. # ## the following is required when containerMode.type=kubernetes # kubernetesModeWorkVolumeClaim: # accessModes: ["ReadWriteOnce"]