At first go to this github repository link and clone the repository
https://github.com/shawon100/kubernetes-grafana-prometheus
Then create a namespace in kubernetes
kubectl create ns dev-prometheus
If you don't want to lose the data of grafana then you can persist your data to any nfs server. In grafana deployment, change the nfs server ip and path according to your nfs server.
Then finally apply the yaml
kubectl apply -f grafana-prometheus.yaml
0 comments:
Post a Comment