diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index bd71ed64c9..283117db31 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -101,6 +101,22 @@ args: - dockerd - --host=unix:///var/run/docker.sock - --group=$(DOCKER_GROUP_GID) +{{- range $i, $container := .Values.template.spec.containers }} + {{- if eq $container.name "dind" }} + {{- if hasKey $container "resources" }} +resources: + {{ $container.resources | toYaml | nindent 2 }} + {{- else }} +resources: + limits: + cpu: 2 + memory: "8Gi" + requests: + cpu: 2 + memory: "8Gi" + {{- end }} + {{- end }} +{{- end }} env: - name: DOCKER_GROUP_GID value: "123"