aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci
diff options
context:
space:
mode:
authorCamilla Conte <cconte@redhat.com>2023-05-22 18:41:54 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-05-24 12:26:40 -0700
commit8acf865084a194b744c685686837caa5d5861628 (patch)
tree858837a83dd1b2533cab0e874290beab92382d20 /scripts/ci
parent037a171a2f4395168bf34ce0955fbadf723de69b (diff)
Add Kubernetes runner configuration
Custom values for the gitlab-runner Helm chart. See https://wiki.qemu.org/Testing/CI/KubernetesRunners. Signed-off-by: Camilla Conte <cconte@redhat.com> Message-Id: <20230522174153.46801-6-cconte@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/ci')
-rw-r--r--scripts/ci/gitlab-kubernetes-runners/values.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/ci/gitlab-kubernetes-runners/values.yaml b/scripts/ci/gitlab-kubernetes-runners/values.yaml
new file mode 100644
index 0000000000..204a96a842
--- /dev/null
+++ b/scripts/ci/gitlab-kubernetes-runners/values.yaml
@@ -0,0 +1,30 @@
+gitlabUrl: "https://gitlab.com/"
+runnerRegistrationToken: ""
+rbac:
+ create: true
+concurrent: 200
+runners:
+ privileged: true
+ config: |
+ [[runners]]
+ limit = 100
+ environment = [
+ "DOCKER_HOST=tcp://docker:2376",
+ "DOCKER_TLS_CERTDIR=/certs",
+ "DOCKER_TLS_VERIFY=1",
+ "DOCKER_CERT_PATH=/certs/client"
+ ]
+ [runners.kubernetes]
+ poll_timeout = 1200
+ image = "ubuntu:20.04"
+ cpu_request = "0.5"
+ service_cpu_request = "0.5"
+ helper_cpu_request = "0.25"
+ cpu_request_overwrite_max_allowed = "7"
+ memory_request_overwrite_max_allowed = "30Gi"
+ [[runners.kubernetes.volumes.empty_dir]]
+ name = "docker-certs"
+ mount_path = "/certs/client"
+ medium = "Memory"
+ [runners.kubernetes.node_selector]
+ agentpool = "jobs"