diff --git a/values/loki/loki.gotmpl b/values/loki/loki.gotmpl index cee319a5a4..6667185bd9 100644 --- a/values/loki/loki.gotmpl +++ b/values/loki/loki.gotmpl @@ -2,6 +2,7 @@ {{- $l:= $v.apps.loki }} {{- $obj := $v.obj.provider }} {{- $bu := $v.obj.buckets }} +{{- $useObjectStorage := eq $obj.type "minioLocal" "linode" }} nameOverride: loki @@ -23,6 +24,7 @@ serviceMonitor: loki: podAnnotations: sidecar.istio.io/inject: "false" + auth_enabled: true schemaConfig: configs: - from: 2020-09-07 @@ -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 @@ -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: