-
Notifications
You must be signed in to change notification settings - Fork 3
/
00pod.yaml
52 lines (52 loc) · 1.07 KB
/
00pod.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
apiVersion: v1
kind: Pod
metadata:
name: moulick-debug
labels:
name: moulick-debug
spec:
containers:
- name: debug
image: moulick/debug-image:latest
imagePullPolicy: Always
resources:
limits:
cpu:
memory: 10Gi
requests:
cpu: 100m
memory: 10Gi
args:
- /bin/sh
- -c
- sleep 100000000
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: DOCKER_HOST
value: tcp://localhost:2375
ports:
- containerPort: 80
- name: dind
image: docker:stable-dind
securityContext:
privileged: true
env:
- name: DOCKER_TLS_CERTDIR
value: ""
resources:
limits:
cpu: 2G
memory: 2G
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: dind-storage
mountPath: /var/lib/docker
volumes:
- name: dind-storage
emptyDir: {}
terminationGracePeriodSeconds: 5