# Loki-Stack Helm Chart ## Prerequisites Make sure you have Helm [installed](https://helm.sh/docs/using_helm/#installing-helm). ## Get Repo Info ```console helm repo add grafana https://grafana.github.io/helm-charts helm repo update ``` _See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ ## Deploy Loki and Promtail to your cluster ### Deploy with default config ```bash helm upgrade --install loki grafana/loki-stack ``` ### Deploy in a custom namespace ```bash helm upgrade --install loki --namespace=loki-stack grafana/loki-stack ``` ### Deploy with custom config ```bash helm upgrade --install loki grafana/loki-stack --set "key1=val1,key2=val2,..." ``` ## Deploy Loki and Fluent Bit to your cluster ```bash helm upgrade --install loki grafana/loki-stack \ --set fluent-bit.enabled=true,promtail.enabled=false ``` ## Deploy Grafana to your cluster The chart loki-stack contains a pre-configured Grafana, simply use `--set grafana.enabled=true` To get the admin password for the Grafana pod, run the following command: ```bash kubectl get secret --namespace loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo ``` To access the Grafana UI, run the following command: ```bash kubectl port-forward --namespace service/loki-grafana 3000:80 ``` Navigate to and login with `admin` and the password output above. Then follow the [instructions for adding the loki datasource](https://grafana.com/docs/grafana/latest/datasources/loki/), using the URL `http://loki:3100/`. ## Upgrade ### Version >= 2.8.0 Provide support configurable datasource urls [#1374](https://github.com/grafana/helm-charts/pull/1374) ### Version >= 2.7.0 Update promtail dependency to ^6.2.3 [#1692](https://github.com/grafana/helm-charts/pull/1692) ### Version >=2.6.0 Bumped grafana 8.1.6->8.3.4 [#1013](https://github.com/grafana/helm-charts/pull/1013)