forked from lwolf/kubernetes-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathgitlab-runner-docker-deployment.yml
More file actions
40 lines (40 loc) · 1.02 KB
/
gitlab-runner-docker-deployment.yml
File metadata and controls
40 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gitlab-runner-docker
namespace: gitlab
spec:
replicas: 1
template:
metadata:
labels:
name: docker-runner
app: gitlab-runner
spec:
containers:
- name: gitlab-runner-docker
image: gitlab/gitlab-runner:alpine-v1.9.2
command: [ "/bin/sh", "-c", "chmod +x /etc/gitlab-runner/entrypoint; /etc/gitlab-runner/entrypoint" ]
env:
- name: KUBERNETES_NAMESPACE
value: gitlab
imagePullPolicy: Always
resources:
limits:
memory: 500Mi
cpu: 600m
requests:
memory: 500Mi
cpu: 600m
volumeMounts:
- name: config
mountPath: /etc/gitlab-runner
- name: var-run-docker-sock
mountPath: /var/run/docker.sock
volumes:
- name: var-run-docker-sock
hostPath:
path: /var/run/docker.sock
- name: config
configMap:
name: gitlab-runner-docker