From 40e294aee9c7093e6db6947e421a65c43b8d8217 Mon Sep 17 00:00:00 2001 From: loveuer Date: Sat, 6 Apr 2024 16:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20deployment/gitlab.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment/gitlab.yaml | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/deployment/gitlab.yaml b/deployment/gitlab.yaml index e9faa53..dff1ca8 100644 --- a/deployment/gitlab.yaml +++ b/deployment/gitlab.yaml @@ -53,4 +53,43 @@ data: namespace = "gitlab-runner" poll_timeout = 600 cpu_request = "1" - service_cpu_request = "200m" \ No newline at end of file + service_cpu_request = "200m" + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: gitlab-runner + namespace: gitlab-runner +spec: + replicas: 1 + selector: + matchLabels: + name: gitlab-runner + template: + metadata: + labels: + name: gitlab-runner + spec: + serviceAccountName: gitlab-admin + containers: + - args: + - run + image: gitlab/gitlab-runner:latest + imagePullPolicy: IfNotPresent + name: gitlab-runner + resources: + requests: + cpu: '100m' + limits: + cpu: '100m' + volumeMounts: + - name: config + mountPath: /etc/gitlab-runner/config.toml + readOnly: true + subPath: config.toml + volumes: + - name: config + configMap: + name: gitlab-runner-config + restartPolicy: Always \ No newline at end of file