Skip to content

Commit 27eef79

Browse files
committed
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.
1 parent 27d03ef commit 27eef79

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

charts/gha-runner-scale-set/templates/_helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ args:
101101
- dockerd
102102
- --host=unix:///var/run/docker.sock
103103
- --group=$(DOCKER_GROUP_GID)
104+
- --mtu={{ default 1450 (dig "dind" "mtu" 1450 .Values.containerMode) }}
104105
env:
105106
- name: DOCKER_GROUP_GID
106107
value: "123"

charts/gha-runner-scale-set/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ githubConfigSecret:
116116
## empty, and configuration should be applied to the template.
117117
# containerMode:
118118
# type: "dind" ## type can be set to "dind", "kubernetes", or "kubernetes-novolume"
119+
# dind:
120+
# mtu: 1450 ## Optional, for DinD mode only. Defaults to 1450.
119121
# ## the following is required when containerMode.type=kubernetes
120122
# kubernetesModeWorkVolumeClaim:
121123
# accessModes: ["ReadWriteOnce"]

0 commit comments

Comments
 (0)