Skip to content

Commit abb6c81

Browse files
fix: loki auth for multi-tenancy (#1662)
Co-authored-by: Jehoszafat Zimnowoda <[email protected]>
1 parent 1642303 commit abb6c81

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

values/loki/loki.gotmpl

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{- $l:= $v.apps.loki }}
33
{{- $obj := $v.obj.provider }}
44
{{- $bu := $v.obj.buckets }}
5+
{{- $useObjectStorage := eq $obj.type "minioLocal" "linode" }}
56

67
nameOverride: loki
78

@@ -23,6 +24,7 @@ serviceMonitor:
2324
loki:
2425
podAnnotations:
2526
sidecar.istio.io/inject: "false"
27+
auth_enabled: true
2628
schemaConfig:
2729
configs:
2830
- from: 2020-09-07
@@ -32,7 +34,7 @@ loki:
3234
index:
3335
prefix: loki_index_
3436
period: 24h
35-
{{- if eq $obj.type "minioLocal" "linode" }}
37+
{{- if $useObjectStorage }}
3638
storageConfig:
3739
boltdb_shipper:
3840
active_index_directory: /var/loki/index
@@ -57,6 +59,13 @@ loki:
5759
{{- end }}
5860
{{- end }}
5961

62+
structuredConfig:
63+
auth_enabled: true
64+
{{- if $useObjectStorage }}
65+
compactor:
66+
shared_store: s3
67+
{{- end }}
68+
6069
ingester:
6170
resources: {{- $l.resources.ingester | toYaml | nindent 4 }}
6271
podAnnotations:

0 commit comments

Comments
 (0)