-
Notifications
You must be signed in to change notification settings - Fork 0
/
cadvisor.daemonset.yaml
60 lines (58 loc) · 1.3 KB
/
cadvisor.daemonset.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
53
54
55
56
57
58
59
60
apiVersion: apps/v1
kind: DaemonSet
spec:
template:
spec:
automountServiceAccountToken: false
terminationGracePeriodSeconds: 30
serviceAccountName: cadvisor
containers:
- name: cadvisor
image: k8s.gcr.io/cadvisor:v0.30.2
ports:
- name: http
containerPort: 8080
protocol: TCP
volumeMounts:
- name: disk
mountPath: /dev/disk
readOnly: true
- name: docker
mountPath: /var/lib/docker
readOnly: true
- name: var-run
mountPath: /var/run
readOnly: true
- name: rootfs
mountPath: /rootfs
readOnly: true
- name: sys
mountPath: /sys
readOnly: true
volumes:
- name: docker
hostPath:
path: /var/lib/docker
- name: var-run
hostPath:
path: /var/run
- name: rootfs
hostPath:
path: /
- name: disk
hostPath:
path: /dev/disk
- name: sys
hostPath:
path: /sys
metadata:
labels:
name: cadvisor
selector:
matchLabels:
name: cadvisor
metadata:
name: cadvisor
namespace: kube-system
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'