Using Helm3 (no more Tiller) to install Grafana and Loki
- Part 1: Helm2 without Tiller
- Part 2: (this article) Helm3 without Tiller
Helm3 is here, and without the server side component Tiller. Let’s check it out!
Download the Beta
Check for latest beta releases on https://github.com/helm/helm/releases
I used beta3: https://github.com/helm/helm/releases/tag/v3.0.0-beta.3
I downloaded and copied it to:
sudo cp helm /usr/local/bin/helm3
For more information about the changes in Helm3 checkout this link:
https://github.com/helm/community/blob/master/helm-v3/000-helm-v3.md
Grafana
Grafana is the open source analytics & monitoring solution for every database.
helm3 repo add stable https://kubernetes-charts.storage.googleapis.comhelm3 repo update
We can just use the existing Helm2 charts (most of the time) and run:
kubectl create ns grafana
helm3 upgrade --install grafana stable/grafana -n grafana
Namespaces are important now
helm ls
won’t show anything, we have to specify the namespace with it:
helm3 -n grafana ls
Access Grafana Interface
Now we can get the admin password and create a port-forward:
kubectl get secret -n grafana grafana -o jsonpath="{.data.admin-password}" | base64 --decodekubectl port-forward -n grafana service/grafana 3000:80
Open http://localhost:3000 to access the Grafana interface.
Loki
Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus.
First we add the repo:
helm3 repo add loki https://grafana.github.io/loki/charts
helm3 repo update
Then we create a namespace and install it:
kubectl create ns loki-stack
helm3 upgrade --install loki-stack -n=loki-stack loki/loki-stack
helm3 -n loki-stack ls
Done. Helm3 looks promising!