forked from draganm/missing-container-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemon-set.yaml
38 lines (38 loc) · 947 Bytes
/
daemon-set.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: missing-container-metrics
namespace: kube-system
labels:
k8s-app: missing-container-metrics
spec:
selector:
matchLabels:
name: missing-container-metrics
template:
metadata:
labels:
name: missing-container-metrics
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '3001'
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: missing-container-metrics
image: dmilhdef/missing-container-metrics:v0.14.0
resources:
limits:
memory: 20Mi
requests:
memory: 20Mi
volumeMounts:
- name: dockersock
mountPath: /var/run/docker.sock
terminationGracePeriodSeconds: 30
volumes:
- name: dockersock
hostPath:
path: /var/run/docker.sock