From b5a3585fa7ae9e917ee58fe6f9ad10d8c2acd1d4 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Fri, 27 Sep 2024 11:03:57 +0200 Subject: [PATCH] fix: update loki --- applications/loki.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/applications/loki.yaml b/applications/loki.yaml index e6cf3e5a..121986c5 100644 --- a/applications/loki.yaml +++ b/applications/loki.yaml @@ -51,6 +51,24 @@ spec: s3ForcePathStyle: true http_config: insecure_skip_verify: true + schemaConfig: + configs: + - from: "2024-04-01" + index: + period: 24h + prefix: loki_index_ + object_store: s3 + schema: v13 + store: tsdb + compactor: + compaction_interval: 10m + working_directory: /tmp/loki/compactor + retention_enabled: true + retention_delete_delay: 2h + retention_delete_worker_count: 150 + delete_request_store: s3 + limits_config: + retention_period: 744h write: extraArgs: - -config.expand-env=true @@ -102,3 +120,31 @@ spec: - hosts: - loki.adm.oceanbox.io secretName: loki-distributed-tls + compactor: + extraArgs: + - -config.expand-env=true + extraEnv: + - name: S3KEY + valueFrom: + secretKeyRef: + name: loki-s3 + key: AWS_ACCESS_KEY_ID + - name: S3SECRET + valueFrom: + secretKeyRef: + name: loki-s3 + key: AWS_ACCESS_KEY_SECRET + backend: + extraArgs: + - -config.expand-env=true + extraEnv: + - name: S3KEY + valueFrom: + secretKeyRef: + name: loki-s3 + key: AWS_ACCESS_KEY_ID + - name: S3SECRET + valueFrom: + secretKeyRef: + name: loki-s3 + key: AWS_ACCESS_KEY_SECRET