y76. Chapter 4 Prometheus factory monitoring system and actual combat -- prometheus advanced (7)

7.Prometheus Advanced

7.1 Install cadvisor

7.1.1 Running and installing cadvisor through daemonset

root@k8s-master1:~# cd kube-prometheus/manifests/
root@k8s-master1:~/kube-prometheus/manifests# kubectl delete -f .
root@k8s-master1:~/kube-prometheus/manifests# kubectl delete -f setup/

root@k8s-master1:~# mkdir prometheus-case
root@k8s-master1:~# cd prometheus-case/
root@k8s-master1:~/prometheus-case# cat case1-daemonset-deploy-cadvisor.yaml 
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: cadvisor
  namespace: monitoring
spec:
  selector:
    matchLabels:
      app: cAdvisor
  template:
    metadata:
      labels:
        app: cAdvis

Guess you like

Origin blog.csdn.net/qq_25599925/article/details/125019141