-
Notifications
You must be signed in to change notification settings - Fork 12
/
oomkill-exporter.yaml
52 lines (52 loc) · 1.17 KB
/
oomkill-exporter.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: apps/v1
kind: DaemonSet
metadata:
name: oomkill-exporter
labels:
app: oomkill-exporter
spec:
selector:
matchLabels:
app: oomkill-exporter
template:
metadata:
labels:
app: oomkill-exporter
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9102"
spec:
containers:
- name: oomkill-exporter
image: sapcc/kubernetes-oomkill-exporter:0.5.11
imagePullPolicy: IfNotPresent
args:
- -logtostderr
- -v=5
securityContext:
privileged: true
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 20m
memory: 20Mi
volumeMounts:
- name: kmsg
mountPath: /dev/kmsg
readOnly: true
- name: containerd
mountPath: /run/containerd/containerd.sock
ports:
- name: metrics
containerPort: 9102
tolerations:
- operator: Exists
volumes:
- name: kmsg
hostPath:
path: /dev/kmsg
- name: containerd
hostPath:
path: /run/containerd/containerd.sock