From 772051dbf1d2e797b02cb4331702f36cdb0aa129 Mon Sep 17 00:00:00 2001 From: joosangkim Date: Thu, 7 Nov 2024 10:37:38 +0900 Subject: [PATCH 1/2] possible to modify dind container resource --- .../templates/_helpers.tpl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index bd71ed64c9..77a9725395 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -101,6 +101,25 @@ args: - dockerd - --host=unix:///var/run/docker.sock - --group=$(DOCKER_GROUP_GID) +env: + - name: DOCKER_GROUP_GID + value: "123" +{{- 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" From a691285ab31de73089babfef73dd787be6239e13 Mon Sep 17 00:00:00 2001 From: joosangkim Date: Thu, 7 Nov 2024 10:39:22 +0900 Subject: [PATCH 2/2] remove wrong env setup --- charts/gha-runner-scale-set/templates/_helpers.tpl | 3 --- 1 file changed, 3 deletions(-) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index 77a9725395..283117db31 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -101,9 +101,6 @@ args: - dockerd - --host=unix:///var/run/docker.sock - --group=$(DOCKER_GROUP_GID) -env: - - name: DOCKER_GROUP_GID - value: "123" {{- range $i, $container := .Values.template.spec.containers }} {{- if eq $container.name "dind" }} {{- if hasKey $container "resources" }}