feat(dind): allow to adjust log level and image name

This commit is contained in:
Piotr Palka 2024-07-04 22:18:22 +07:00
parent 80d848339e
commit 919ac45746
No known key found for this signature in database
GPG Key ID: CBB712131CEACF32
2 changed files with 12 additions and 2 deletions

View File

@ -96,11 +96,12 @@ volumeMounts:
{{- end }} {{- end }}
{{- define "gha-runner-scale-set.dind-container" -}} {{- define "gha-runner-scale-set.dind-container" -}}
image: docker:dind image: {{ .Values.template.spec.dind.image }}
args: args:
- dockerd - dockerd
- --host=unix:///var/run/docker.sock - --host=unix:///var/run/docker.sock
- --group=$(DOCKER_GROUP_GID) - --group=$(DOCKER_GROUP_GID)
- --log-level={{ .Values.template.spec.dind.logLevel }}
env: env:
- name: DOCKER_GROUP_GID - name: DOCKER_GROUP_GID
value: "123" value: "123"

View File

@ -132,11 +132,12 @@ template:
## - name: dind-sock ## - name: dind-sock
## mountPath: /var/run ## mountPath: /var/run
## - name: dind ## - name: dind
## image: docker:dind ## image: {{ .Values.template.spec.dind.image }}
## args: ## args:
## - dockerd ## - dockerd
## - --host=unix:///var/run/docker.sock ## - --host=unix:///var/run/docker.sock
## - --group=$(DOCKER_GROUP_GID) ## - --group=$(DOCKER_GROUP_GID)
## - --log-level={{ .Values.template.spec.dind.logLevel }}
## env: ## env:
## - name: DOCKER_GROUP_GID ## - name: DOCKER_GROUP_GID
## value: "123" ## value: "123"
@ -187,6 +188,14 @@ template:
## requests: ## requests:
## storage: 1Gi ## storage: 1Gi
spec: spec:
dind:
## Log level of the ephemeral runners. Use one of the following values: "debug", "info", "warn", "error", "fatal".
## Defaults to "info".
logLevel: info
## Set a dind image for sidecar container. Eg: use a specific registry in cloud environment to speed up the image pulling process and cut down external network traffic cost.
## For AWS based deployments 'public.ecr.aws/docker/library/docker:dind' may be a good choice.
## Defaults to "docker:dind".
image: docker:dind
containers: containers:
- name: runner - name: runner
image: ghcr.io/actions/actions-runner:latest image: ghcr.io/actions/actions-runner:latest