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.
This commit is contained in:
Benoit Sigoure 2025-09-17 17:24:52 +02:00
parent 27d03ef2e2
commit 27eef79d54
2 changed files with 3 additions and 0 deletions

View File

@ -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"

View File

@ -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"]