forked from maateen/docker-pruner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yml
43 lines (43 loc) · 908 Bytes
/
k8s.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
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: docker-pruner
namespace: kube-system
labels:
app: docker-pruner
spec:
selector:
matchLabels:
app: docker-pruner
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
template:
metadata:
labels:
app: docker-pruner
spec:
containers:
- name: docker-pruner
image: maateen/docker-pruner
imagePullPolicy: Always
env:
- name: PRUNER_INTERVAL
value: 24h
resources:
limits:
cpu: 25m
memory: 50Mi
requests:
cpu: 25m
memory: 50Mi
volumeMounts:
- name: dockersocket
mountPath: /var/run/docker.sock
readOnly: true
volumes:
- name: dockersocket
hostPath:
path: /var/run/docker.sock