-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjnekins-k8s-slave.yaml
95 lines (95 loc) · 2.35 KB
/
jnekins-k8s-slave.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apiVersion: "v1"
kind: "Pod"
metadata:
labels:
jenkins: "slave"
jenkins/label-digest: "200f56d0c10e457a5d84a91b055a1730c3dc7abc"
jenkins/label: "jenkins-agent"
name: "jenkins-agent-tljgw"
namespace: "jenkins"
spec:
containers:
- env:
- name: "JENKINS_SECRET"
value: "********"
- name: "JENKINS_TUNNEL"
value: "1.94.17.17:50000"
- name: "JENKINS_AGENT_NAME"
value: "jenkins-agent-tljgw"
- name: "JENKINS_NAME"
value: "jenkins-agent-tljgw"
- name: "JENKINS_AGENT_WORKDIR"
value: "/home/jenkins/agent"
- name: "JENKINS_URL"
value: "http://1.94.17.17:8080/"
image: "swr.cn-east-3.myhuaweicloud.com/hwy-test/jenkins-slave-maven:kustomize"
imagePullPolicy: "Always"
name: "jnlp"
resources: {}
securityContext:
privileged: false
runAsUser: 0
tty: true
volumeMounts:
- mountPath: "/Users/pingguo/Repository_lemeng"
name: "volume-0"
readOnly: false
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
workingDir: "/home/jenkins/agent"
- env:
- name: "DOCKER_TLS_CERTDIR"
value: ""
image: "docker:19-dind"
imagePullPolicy: "IfNotPresent"
name: "dockerd"
resources: {}
securityContext:
privileged: true
runAsUser: 0
tty: false
volumeMounts:
- mountPath: "/Users/pingguo/Repository_lemeng"
name: "volume-0"
readOnly: false
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
workingDir: "/home/jenkins/agent"
- args:
- "9999999"
command:
- "sleep"
env:
- name: "DOCKER_HOST"
value: "127.0.0.1"
image: "docker:latest"
imagePullPolicy: "IfNotPresent"
name: "docker"
resources: {}
securityContext:
privileged: false
runAsUser: 0
tty: true
volumeMounts:
- mountPath: "/Users/pingguo/Repository_lemeng"
name: "volume-0"
readOnly: false
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
workingDir: "/home/jenkins/agent"
hostNetwork: false
nodeSelector:
kubernetes.io/os: "linux"
restartPolicy: "Never"
securityContext:
runAsUser: 0
volumes:
- hostPath:
path: "/Users/pingguo/Repository_lemeng"
name: "volume-0"
- emptyDir:
medium: ""
name: "workspace-volume"