-
Notifications
You must be signed in to change notification settings - Fork 15
/
builder.yaml
46 lines (46 loc) · 956 Bytes
/
builder.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
apiVersion: v1
kind: Pod
metadata:
name: jenkins-builder
spec:
containers:
- name: maven
image: maven:3.8.5-jdk-11-slim
command:
- /bin/cat
tty: true
volumeMounts:
- mountPath: /root/.m2/repository
name: maven-repo
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
- name: kaniko
image: gcr.io/kaniko-project/executor:debug
command:
- /busybox/cat
tty: true
volumeMounts:
- name: kaniko-secret
mountPath: /kaniko/.docker
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
volumes:
- name: maven-repo
persistentVolumeClaim:
claimName: maven-pv-claim
- name: kaniko-secret
secret:
secretName: dockercred
items:
- key: .dockerconfigjson
path: config.json