Deploy Grafana using Helm Chart

brew install helm

Initialize the grafana helm chart repository

helm repo add grafana https://grafana.github.io/helm-charts
helm repo update

Pull the repo to your local system

helm pull grafana/grafana

Edit the values.yaml

Install Helm Chart with the updated values.yaml file

helm install <name> ./grafana -f ./grafana/values.yaml

Creating the Pod & its components

NAME: helmgrafanaLAST DEPLOYED: Mon Jul  4 23:11:47 2022NAMESPACE: defaultSTATUS: deployedREVISION: 1NOTES:1. Get your 'admin' user password by running:kubectl get secret --namespace default helmgrafana-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster:my-release-grafana.default.svc.cluster.localGet the Grafana URL to visit by running these commands in the same shell:export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=helmgrafana" -o jsonpath="{.items[0].metadata.name}")kubectl --namespace default port-forward $POD_NAME 30003. Login with the password from step 1 and the username: admin

Next Steps

export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=helmgrafana" -o jsonpath="{.items[0].metadata.name}")kubectl --namespace default port-forward $POD_NAME 3000

The final result

Grafana server configuration

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ayan Bhadury

Ayan Bhadury

Tech reviewer.. JS developer by heart