From 8e2447c67c1a882b94ae77c9b0440ba6940d72dd Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 19 May 2026 21:32:24 +0100 Subject: [PATCH] Move to using linode object storage for loki --- kubernetes/namespaces/loki/loki_values.yml | 20 ++++++++++++++------ kubernetes/namespaces/loki/secrets.yaml | Bin 0 -> 266 bytes 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 kubernetes/namespaces/loki/secrets.yaml diff --git a/kubernetes/namespaces/loki/loki_values.yml b/kubernetes/namespaces/loki/loki_values.yml index 6459c006..60a226b6 100644 --- a/kubernetes/namespaces/loki/loki_values.yml +++ b/kubernetes/namespaces/loki/loki_values.yml @@ -20,9 +20,15 @@ loki: prefix: index_ period: 24h - # Storage type is S3 (Minio) + # Storage type is S3 (Linode Object Storage) storage: type: s3 + s3: + endpoint: eu-central-1.linodeobjects.com + region: eu-central-1 + bucketnames: loki-cache + accessKeyId: ${LOKI_S3_ACCESS_KEY_ID} + secretAccessKey: ${LOKI_S3_SECRET_ACCESS_KEY} compactor: retention_enabled: true @@ -74,12 +80,18 @@ sidecar: singleBinary: # Set replicas to 3 again replicas: 3 + # Inject Linode Object Storage credentials from secret + envFrom: + - secretRef: + name: loki-s3 # Disable any persistence in Loki, all persistence is in S3 persistence: enabled: false - # Enable the pattern ingester (for Grafana Explore Logs) extraArgs: + # Enable the pattern ingester (for Grafana Explore Logs) - "--pattern-ingester.enabled=true" + # Enable environment variable expansion in the Loki config (required for ${VAR} credential references) + - "--config.expand-env=true" # Add a tmpfs in /var/loki for temporary data storage extraVolumes: @@ -107,10 +119,6 @@ write: backend: replicas: 0 -# Enable Minio for S3 storage -minio: - enabled: true - # Enable Prometheus scraping of the Loki Canaries lokiCanary: annotations: diff --git a/kubernetes/namespaces/loki/secrets.yaml b/kubernetes/namespaces/loki/secrets.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9b2b655de4a76a276842c107e125ba8c3a4fd621 GIT binary patch literal 266 zcmV+l0rma>M@dveQdv+`0Mq_t8#%aKrN-ahw!cikZ1NK&O8#JoVC3_>PuW>x`#hs4Ho0JBuC_ud! QlL5ky55+1HII*+SZig#{Y5)KL literal 0 HcmV?d00001