|
|
@@ -0,0 +1,89 @@
|
|
|
+apiVersion: v1
|
|
|
+kind: Namespace
|
|
|
+metadata:
|
|
|
+ labels:
|
|
|
+ app: cadvisor
|
|
|
+ name: cadvisor
|
|
|
+---
|
|
|
+apiVersion: v1
|
|
|
+kind: ServiceAccount
|
|
|
+metadata:
|
|
|
+ labels:
|
|
|
+ app: cadvisor
|
|
|
+ name: cadvisor
|
|
|
+ namespace: cadvisor
|
|
|
+---
|
|
|
+apiVersion: apps/v1
|
|
|
+kind: DaemonSet
|
|
|
+metadata:
|
|
|
+ annotations:
|
|
|
+ seccomp.security.alpha.kubernetes.io/pod: docker/default
|
|
|
+ labels:
|
|
|
+ app: cadvisor
|
|
|
+ name: cadvisor
|
|
|
+ namespace: cadvisor
|
|
|
+spec:
|
|
|
+ selector:
|
|
|
+ matchLabels:
|
|
|
+ app: cadvisor
|
|
|
+ name: cadvisor
|
|
|
+ template:
|
|
|
+ metadata:
|
|
|
+ labels:
|
|
|
+ app: cadvisor
|
|
|
+ name: cadvisor
|
|
|
+ spec:
|
|
|
+ automountServiceAccountToken: false
|
|
|
+ containers:
|
|
|
+ - image: ghcr.io/google/cadvisor:0.60.6
|
|
|
+ name: cadvisor
|
|
|
+ ports:
|
|
|
+ - containerPort: 8080
|
|
|
+ name: http
|
|
|
+ protocol: TCP
|
|
|
+ resources:
|
|
|
+ limits:
|
|
|
+ cpu: 800m
|
|
|
+ memory: 2000Mi
|
|
|
+ requests:
|
|
|
+ cpu: 0
|
|
|
+ memory: 0
|
|
|
+ volumeMounts:
|
|
|
+ - mountPath: /rootfs
|
|
|
+ name: rootfs
|
|
|
+ readOnly: true
|
|
|
+ - mountPath: /var/run
|
|
|
+ name: var-run
|
|
|
+ readOnly: true
|
|
|
+ - mountPath: /sys
|
|
|
+ name: sys
|
|
|
+ readOnly: true
|
|
|
+ - mountPath: /var/lib/docker
|
|
|
+ name: docker
|
|
|
+ readOnly: true
|
|
|
+ - mountPath: /dev/disk
|
|
|
+ name: disk
|
|
|
+ readOnly: true
|
|
|
+ tolerations:
|
|
|
+ - key: storage-node
|
|
|
+ operator: Equal
|
|
|
+ value: "true"
|
|
|
+ effect: NoSchedule
|
|
|
+ serviceAccountName: cadvisor
|
|
|
+ terminationGracePeriodSeconds: 30
|
|
|
+ volumes:
|
|
|
+ - hostPath:
|
|
|
+ path: /
|
|
|
+ name: rootfs
|
|
|
+ - hostPath:
|
|
|
+ path: /var/run
|
|
|
+ name: var-run
|
|
|
+ - hostPath:
|
|
|
+ path: /sys
|
|
|
+ name: sys
|
|
|
+ - hostPath:
|
|
|
+ path: /var/lib/docker
|
|
|
+ name: docker
|
|
|
+ - hostPath:
|
|
|
+ path: /dev/disk
|
|
|
+ name: disk
|