Prometheus / Grafana helm chart with local storage.
This is a Helm chart for Prometheus and Grafana that uses local storage instead of volume from a cloud vendor. The helm chart creates a
StorageClass that uses local storage and also creates the
I created this because i use K3S for some of my Kubernetes setups and I run them on non cloud vendors, so this is perfect for that, On-prem or vendors that dont have cloud volumes.
Step 1 - Preperations.
SSH into the server you plan to deploy Prometheus & Grafana too.
Create the directories needed, paths for this can be changed to whatever you supply in
$ mkdir -p /myvolumes/prometheus/alertmanager
$ mkdir -p /myvolumes/prometheus/pushgateway
$ mkdir -p /myvolumes/prometheus/server
Step 2 - Deploy the helm chart.
Clone this repo to your computer (not the server).
Deploy the helm chart.
$ helm install --name pixelpiloten_prometheus . -f values.yaml
Create a port-forward to the Grafana Service, port 8080 can be whatever port you want.
$ kubectl -n monitoring port-forward svc/grafana 8080:80
Now you can access the Grafana web GUI in your browser.