forked from Yan316/example-product-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
slavePod.yaml
68 lines (68 loc) · 1.67 KB
/
slavePod.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
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
68
apiVersion: v1
kind: Pod
metadata:
labels:
jenkins: slave
jenkins/label: jnlp-agent
spec:
containers:
# - image: ccr.ccs.tencentyun.com/my-registry/jenkins:salve-gradle
- image: jicki/jenkins-jnlp:gradle5.6
# - image: jenkins/jnlp-slave:alpine
imagePullPolicy: Always
name: jnlp
tty: true
volumeMounts:
- mountPath: /usr/bin/kubectl
name: volume-3
readOnly: false
- mountPath: /var/run/docker.sock
name: volume-1
readOnly: false
- mountPath: /usr/bin/docker
name: volume-0
readOnly: false
- mountPath: /root/.kube
name: volume-2
readOnly: false
- mountPath: /home/jenkins/agent
name: workspace-volume
readOnly: false
- mountPath: /root/.gradle
name: volume-4
- mountPath: /home/jenkins/.gradle
name: volume-5
- mountPath: /tmp
name: volume-6
- mountPath: /usr/bin/docker-compose
name: volume-7
restartPolicy: Never
serviceAccount: jenkins
volumes:
- hostPath:
path: /usr/bin/docker
name: volume-0
- hostPath:
path: /root/.kube/
name: volume-2
- hostPath:
path: /var/run/docker.sock
name: volume-1
- emptyDir:
medium: ""
name: workspace-volume
- hostPath:
path: /usr/bin/kubectl
name: volume-3
- hostPath:
path: /opt/data/gradle
name: volume-4
- hostPath:
path: /opt/data/gradle
name: volume-5
- hostPath:
path: /tmp
name: volume-6
- hostPath:
path: /usr/bin/docker-compose
name: volume-7