Launch Prometheus and Grafana on Kubernetes

Task Description:-

  1. Deploy them as pods on top of Kubernetes by creating resources Deployment, ReplicaSet, Pods or Services
  2. And make their data to be remain persistent
  3. And both of them should be exposed to outside world

Step 1:

Firstly we need to create Docker image for Prometheus and Grafanan

Step 2:

Now we need to launch two pods with these image but before that we need to create PVC for both the pods, one for Prometheus and the other for Grafana.

Step 3:

In this step we need to launch two pods from Promethes and Grafana image and also we will attach the PVC created.

Step 4:

In this step we will expose the pods to the outside world. Againg to expose the pods I have craeted to expose file that will expose the pods to the outside world.