-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-daemonset--docker-builder-prune.yml
58 lines (58 loc) · 1.32 KB
/
k8s-daemonset--docker-builder-prune.yml
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
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: docker-builder-prune
spec:
minReadySeconds: 60
selector:
matchLabels:
app: docker-builder-prune
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: docker-builder-prune
version: v1
spec:
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
- name: docker-var-lib
hostPath:
path: /var/lib/docker
dnsConfig:
options:
- name: edns0
- name: single-request
- name: single-request-reopen
- name: timeout
value: '1'
- name: attempts
value: '2'
- name: ndots
value: '1'
containers:
- name: docker-builder-prune
image: jamesjj/docker-builder-prune:20191109c
imagePullPolicy: IfNotPresent
env:
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumeMounts:
- name: docker-socket
mountPath: /var/run/docker.sock
- name: docker-var-lib
mountPath: /var/lib/docker
readOnly: true
resources:
limits:
cpu: 150m
memory: 128Mi
requests:
cpu: 20m
memory: 128Mi