在Kubernetes下安装部署Prometheus

部署Prometheus

  1. kubectl create -f prometheus/prometheus-rbac-setup.yml
  2. kubectl create -f prometheus/prometheus-config.yml
  3. kubectl create -f prometheus/prometheus-deployment.yml
  4. kubectl create -f prometheus/prometheus-ingress.yml

部署Exporters

  1. kubectl create -f prometheus/node-exporter-daemonset.yml
  2. kubectl create -f prometheus/blackbox-exporter-deployment.yml

部署测试应用

  1. kubectl create -f nginx-deployment.yml
  2. kubectl create -f nginx/nginx-service.yml