-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkins-Slave-Pod.yaml
60 lines (60 loc) · 1.42 KB
/
Jenkins-Slave-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: v1
kind: Pod
metadata:
labels:
jmeter-label: jmeter-master
jenkins-label: jenkins-slave
spec:
serviceAccountName: jenkins-release
containers:
- name: maven
image: maven:alpine
command:
- cat
tty: true
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1024Mi"
cpu: "500m"
volumeMounts:
- mountPath: /root/.m2
name: m2-volume
- name: kubehelm
image: dtzar/helm-kubectl:2.14.3
command:
- cat
tty: true
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "200m"
volumeMounts:
# - mountPath: /root/.kube
# name: kube-volume
- mountPath: /root/.helm
name: helm-volume
volumes:
# - name: kube-volume
# hostPath:
# # directory location on host
# path: /Users/asankav/.kube
# # this field is optional
# type: Directory
# - name: helm-volume
# hostPath:
# # directory location on host
# path: /Users/asankav/.helm
# # this field is optional
# type: Directory
- name: m2-volume
persistentVolumeClaim:
claimName: maven-efs-pv-claim
- name: helm-volume
persistentVolumeClaim:
claimName: helm-efs-pv-claim