1. At first clone this repo: https://github.com/shawon100/kubernetes-grafana-prometheus
git clone https://github.com/shawon100/kubernetes-grafana-prometheus
2. Then create a namespace named monitoring
kubectl create ns monitoring
3. Next, create the persistent volumes and claims so that data will not be erased after pod restarting
kubectl apply -f prometheus-pv.yml
kubectl apply -f prometheus-pvc.yml
kubectl apply -f grafana-pv.yml
kubectl apply -f grafana-pvc.yml
4. Finally apply the grafana-prometheus.yaml
kubectl apply -f grafana-prometheus.yaml
5. Setup the ingress to access the grafana
kubectl apply -f grafana-ingress.yml
0 comments:
Post a Comment