Sajadorouji / prometheus-k8s-monitoring

K8s Monitoring with Prometheus + cAdvisor DaemonSet

Home Page:https://veerendra2.github.io/prometheus-k8s-monitoring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

K8s Monitoring with Prometheus + cAdvisor DaemonSet

  1. Run cAdvisor Daemonset which K8s deploys the cAdvisor on every node in cluster
kubectl create -f https://raw.githubusercontent.com/veerendra2/prometheus-k8s-monitoring/master/cadvisor-daemonset.yml
  1. Run Prometheus Configmap which provides config for prometheus server. If nessasary edit the config and run
kubectl create -f https://raw.githubusercontent.com/veerendra2/prometheus-k8s-monitoring/master/prometheus-configmap.yml
  1. Apply RBAC
kubectl apply -f https://raw.githubusercontent.com/veerendra2/prometheus-k8s-monitoring/master/prometheus-rbac.yml
  1. Now create Deployment which K8s creates Prometheus POD, Service with a NodePort 30901
kubectl create -f https://raw.githubusercontent.com/veerendra2/prometheus-k8s-monitoring/master/prometheus-deployment.yml
  • Open TCP port 30901 on any node in the cluster.
  • Access the Prometheus UI http://<NODE IP>:30901
NOTE

About

K8s Monitoring with Prometheus + cAdvisor DaemonSet

https://veerendra2.github.io/prometheus-k8s-monitoring/


Languages

Language:Python 55.3%Language:Shell 31.2%Language:Dockerfile 13.4%