-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathk8s.yml
67 lines (67 loc) · 1.65 KB
/
k8s.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: apps/v1
kind: Deployment
metadata:
name: docker-runner
labels:
app: docker-runner
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: docker-runner
template:
metadata:
labels:
app: docker-runner
spec:
serviceAccountName: docker-runner
containers:
- image: docker.dolansoft.org/dolansoft/docker-runner/dind:dev2
securityContext:
privileged: true
name: docker
resources:
requests:
cpu: 20m
memory: 200Mi
volumeMounts:
- mountPath: /var/lib/docker
name: cache
- mountPath: /var/run
name: socket
- mountPath: /etc/docker/certs.d
name: certs
readOnly: true
- image: docker.dolansoft.org/dolansoft/docker-builder:dev3
name: runner
env:
- name: GITLAB_URL
value: https://git.dolansoft.org/
- name: REGISTRY
value: docker.dolansoft.org
- name: DOCKER_API_VERSION
value: "1.38"
- name: GITLAB_RUNNER_TOKEN
valueFrom:
secretKeyRef:
name: docker-builder-token
key: token
volumeMounts:
- name: socket
mountPath: /var/run
- name: cacerts
mountPath: /etc/ssl/certs
volumes:
- name: cache
persistentVolumeClaim:
claimName: docker-runner-cache
- name: certs
hostPath:
path: /etc/docker/certs.d
- name: socket
emptyDir: {}
- name: cacerts
configMap:
name: cacerts
restartPolicy: Always