45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: cadvisor
|
||
|
namespace: kube-system
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
name: cadvisor
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: cadvisor
|
||
|
spec:
|
||
|
automountServiceAccountToken: false
|
||
|
containers:
|
||
|
- name: cadvisor
|
||
|
image: gcr.io/cadvisor/cadvisor:v0.47.2
|
||
|
volumeMounts:
|
||
|
- name: rootfs
|
||
|
mountPath: /rootfs
|
||
|
readOnly: true
|
||
|
- name: var-run
|
||
|
mountPath: /var/run
|
||
|
readOnly: true
|
||
|
- name: sys
|
||
|
mountPath: /sys
|
||
|
readOnly: true
|
||
|
- name: docker
|
||
|
mountPath: /var/lib/docker
|
||
|
readOnly: true
|
||
|
volumes:
|
||
|
- name: rootfs
|
||
|
hostPath:
|
||
|
path: /
|
||
|
- name: var-run
|
||
|
hostPath:
|
||
|
path: /var/run
|
||
|
- name: sys
|
||
|
hostPath:
|
||
|
path: /sys
|
||
|
- name: docker
|
||
|
hostPath:
|
||
|
path: /var/lib/docker
|