Cannot set concurrency for runners in Kubernetes with Helm
I'm deploying GitLab Runner via the Helm chart (version 0.28.0) on Kubernetes.
Neither the concurrent
setting in values.yaml
nor settings concurrent
in the global section of the runners.config
seems to have an impact on the resulting configuration that the runner uses. It appears to me as if the merge of the config.toml
and config.template.toml
doesn't merge the top-level keys.
# values.yaml
# https://gitlab.com/gitlab-org/charts/gitlab-runner/blob/master/values.yaml#L201
gitlabUrl: "https://gitlab.com"
runnerRegistrationToken: null # To be defined
replicas: 3
image: gitlab/gitlab-runner:ubuntu-v13.11.0
rbac:
create: true
logFormat: "json"
logLevel: "info"
runners:
# runner configuration: https://docs.gitlab.com/runner/configuration/advanced-configuration.html
config: |
[[runners]]
environment = ["DOCKER_HOST=tcp://localhost:2375"]
executor = "kubernetes"
request_concurrency = 1
[runners.kubernetes]
image = "ubuntu:20.04"
locked: false
# /configmaps/config.template.toml
[[runners]]
environment = ["DOCKER_HOST=tcp://localhost:2375"]
executor = "kubernetes"
request_concurrency = 1
[runners.kubernetes]
image = "ubuntu:20.04"
# /configmaps/config.toml
concurrent = 10 # This is 10 because the default value for `.Values.concurrent` is 10.
check_interval = 30
log_level = "info"
log_format = "json"
listen_address = ':9252'
# /home/gitlab-runner/.gitlab-runner/config.toml
# This file is a copy of /configmaps/config.toml
concurrent = 10
check_interval = 30
log_level = "info"
log_format = "json"
listen_address = ':9252'
# /etc/gitlab-runner/config.toml
concurrent = 1 # Shouldn't this be 10, due to the merge of config.toml and config.template.toml?
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "gitlab-runner-gitlab-runner-*****-*****"
request_concurrency = 1
url = "https://gitlab.com"
token = "*****"
executor = "kubernetes"
environment = ["DOCKER_HOST=tcp://localhost:2375"]
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.kubernetes]
host = ""
bearer_token_overwrite_allowed = false
image = "ubuntu:20.04"
namespace = "gitlab"
namespace_overwrite_allowed = ""
pull_policy = [""]
service_account_overwrite_allowed = ""
pod_annotations_overwrite_allowed = ""
[runners.kubernetes.affinity]
[runners.kubernetes.pod_security_context]
[runners.kubernetes.volumes]
[runners.kubernetes.dns_config]