github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/loki-stack/README.md (about) 1 # ⚠️ DEPRECATED - Loki-Stack Helm Chart 2 3 This chart was moved to <https://github.com/grafana/helm-charts>. 4 5 ## Prerequisites 6 7 Make sure you have Helm [installed](https://helm.sh/docs/using_helm/#installing-helm) and 8 [deployed](https://helm.sh/docs/using_helm/#installing-tiller) to your cluster. Then add 9 Loki's chart repository to Helm: 10 11 ```bash 12 $ helm repo add loki https://grafana.github.io/loki/charts 13 ``` 14 15 You can update the chart repository by running: 16 17 ```bash 18 $ helm repo update 19 ``` 20 21 ## Deploy Loki and Promtail to your cluster 22 23 ### Deploy with default config 24 25 ```bash 26 $ helm upgrade --install loki loki/loki-stack 27 ``` 28 29 ### Deploy in a custom namespace 30 31 ```bash 32 $ helm upgrade --install loki --namespace=loki-stack loki/loki-stack 33 ``` 34 35 ### Deploy with custom config 36 37 ```bash 38 $ helm upgrade --install loki loki/loki-stack --set "key1=val1,key2=val2,..." 39 ``` 40 41 ## Deploy Loki and Fluent Bit to your cluster 42 43 ```bash 44 $ helm upgrade --install loki loki/loki-stack \ 45 --set fluent-bit.enabled=true,promtail.enabled=false 46 ``` 47 48 ## Deploy Grafana to your cluster 49 50 The chart loki-stack contains a pre-configured Grafana, simply use `--set grafana.enabled=true` 51 52 To get the admin password for the Grafana pod, run the following command: 53 54 ```bash 55 $ kubectl get secret --namespace <YOUR-NAMESPACE> loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo 56 ``` 57 58 To access the Grafana UI, run the following command: 59 60 ```bash 61 $ kubectl port-forward --namespace <YOUR-NAMESPACE> service/loki-grafana 3000:80 62 ``` 63 64 Navigate to http://localhost:3000 and login with `admin` and the password output above. 65 Then follow the [instructions for adding the loki datasource](/docs/getting-started/grafana.md), using the URL `http://loki:3100/`. 66