possible to modify dind container resource

This commit is contained in:
joosangkim 2024-11-07 10:37:38 +09:00
parent 96d1bbcf2f
commit 772051dbf1
No known key found for this signature in database
GPG Key ID: 5E8D0A5C5ECE3311
1 changed files with 19 additions and 0 deletions

View File

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