-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-pod.yaml
40 lines (39 loc) · 1.02 KB
/
build-pod.yaml
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: v1
kind: Pod
metadata:
name: build-pod
spec:
containers: # list of containers that you want present for your build, you can define a default container in the Jenkinsfile
- name: custom-agent
image: josiokoko/onyxquity-inbound-agent
command: ["tail", "-f", "/dev/null"]
tty: true
volumeMounts:
- name: dind-certs
mountPath: /certs/client
env:
- name: DOCKER_CERT_PATH
value: /certs/client
- name: DOCKER_TLS_VERIFY
value: 1
- name: DOCKER_HOST
value: tcp://localhost:2376
resources: {}
- name: dind
image: docker:dind
securityContext:
privileged: true
env:
- name: DOCKER_TLS_CERTDIR
value: /certs
resources: {}
volumeMounts:
- name: dind-storage
mountPath: /var/lib/docker
- name: dind-certs
mountPath: /certs/client
volumes:
- name: dind-storage
emptyDir: {}
- name: dind-certs
emptyDir: {}