Skip to content

Commit

Permalink
fix: loki auth for multi-tenancy (#1662)
Browse files Browse the repository at this point in the history
Co-authored-by: Jehoszafat Zimnowoda <17126497+j-zimnowoda@users.noreply.github.com>
  • Loading branch information
srodenhuis and j-zimnowoda committed Aug 1, 2024
1 parent 1642303 commit abb6c81
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion values/loki/loki.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{- $l:= $v.apps.loki }}
{{- $obj := $v.obj.provider }}
{{- $bu := $v.obj.buckets }}
{{- $useObjectStorage := eq $obj.type "minioLocal" "linode" }}

nameOverride: loki

Expand All @@ -23,6 +24,7 @@ serviceMonitor:
loki:
podAnnotations:
sidecar.istio.io/inject: "false"
auth_enabled: true
schemaConfig:
configs:
- from: 2020-09-07
Expand All @@ -32,7 +34,7 @@ loki:
index:
prefix: loki_index_
period: 24h
{{- if eq $obj.type "minioLocal" "linode" }}
{{- if $useObjectStorage }}
storageConfig:
boltdb_shipper:
active_index_directory: /var/loki/index
Expand All @@ -57,6 +59,13 @@ loki:
{{- end }}
{{- end }}

structuredConfig:
auth_enabled: true
{{- if $useObjectStorage }}
compactor:
shared_store: s3
{{- end }}

ingester:
resources: {{- $l.resources.ingester | toYaml | nindent 4 }}
podAnnotations:
Expand Down

0 comments on commit abb6c81

Please sign in to comment.