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