Skip to content
Branch: master
Find file History
gouthamve Fix local config: Use DayTime (#598)
* Fix local config: Use DayTime

Psst, the date is the first commit date for loki ;)

Signed-off-by: Goutham Veeramachaneni <>

* Fix the config in ksonnet and helm too

Signed-off-by: Goutham Veeramachaneni <>
Latest commit f2fb161 May 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
loki-stack Helm: Allow custom pipeline stages (#580) May 15, 2019
loki Fix local config: Use DayTime (#598) May 17, 2019
promtail Helm: Allow custom pipeline stages (#580) May 15, 2019 Merge pull request #491 from daixiang0/debug-helm May 14, 2019

Loki Helm Chart


Make sure you have Helm installed and deployed to your cluster. Then add Loki's chart repository to Helm:

$ helm repo add loki

You can update the chart repository by running:

$ helm repo update

Deploy Loki and Promtail to your cluster

Deploy with default config

$ helm upgrade --install loki loki/loki-stack

Deploy with custom config

$ helm upgrade --install loki loki/loki --set "key1=val1,key2=val2,..."

Deploy Loki only

$ helm upgrade --install loki loki/loki --set "loki.serviceName=my-loki"

Deploy Promtail only

$ helm upgrade --install promtail loki/promtail

Deploy Grafana to your cluster

To install Grafana on your cluster with helm, use the following command:

$ helm install stable/grafana -n loki-grafana

To get the admin password for the Grafana pod, run the following command:

$  kubectl get secret --namespace <YOUR-NAMESPACE> loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

To access the Grafana UI, run the following command:

$ kubectl port-forward --namespace <YOUR-NAMESPACE> service/loki-grafana 3000:80

Navigate to http://localhost:3000 and login with admin and the password output above. Then follow the instructions for adding the loki datasource, using the URL http://loki:3100/.

Run Loki behind https ingress

If Loki and Promtail are deployed on different clusters you can add an Ingress in front of Loki. By adding a certificate you create an https endpoint. For extra security enable basic authentication on the Ingress.

In promtail set the following values to communicate with https and basic auth

  serviceScheme: https
  user: user
  password: pass

Sample helm template for ingress:

apiVersion: extensions/v1beta1
kind: Ingress
annotations: {{ .Values.ingress.class }} "basic" {{ .Values.ingress.basic.secret }}
name: loki
- host: {{ }}
    - backend:
        serviceName: loki
        servicePort: 3100
- secretName: {{ .Values.ingress.cert }}
    - {{ }}

How to contribute

If you want to add any feature to helm chart, you can follow as below:

$ # do some changes to loki/promtail in the corresponding directory
$ make helm
$ helm upgrade --install loki ./loki-stack-*.tgz

After verify changes, need to bump chart version. For example, if you update the loki chart, you need to bump the version as following:

$ # update version loki/Chart.yaml
$ # update version loki-stack/Chart.yaml
You can’t perform that action at this time.