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