-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkubernetesPod.yaml
46 lines (46 loc) · 1023 Bytes
/
kubernetesPod.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: crane
labels:
ci: crane-build
spec:
volumes:
- name: docker-socket
emptyDir: { }
containers:
- name: builder
image: registry.openanalytics.eu/proxy/library/maven:3-openjdk-17
command:
- cat
tty: true
env:
- name: DOCKER_HOST
value: unix:///var/run/docker/docker.sock
volumeMounts:
- mountPath: /var/run/docker
name: docker-socket
resources:
requests:
memory: "2Gi"
cpu: "1.0"
limits:
memory: "4Gi"
cpu: "1.5"
- name: docker
image: docker:dind
securityContext:
privileged: true
env:
- name: DOCKER_HOST
value: unix:///var/run/docker/docker.sock
volumeMounts:
- mountPath: /var/run/docker
name: docker-socket
resources:
requests:
memory: "2Gi"
cpu: "1.0"
limits:
memory: "4Gi"
cpu: "1.5"