From 672366d41b59b35c02e07a60f36a6bef95e7b52e Mon Sep 17 00:00:00 2001 From: paulfantom Date: Sat, 16 Nov 2024 15:22:52 +0100 Subject: [PATCH] datalake-metrics: prepare for migration --- .../manifests/compact/statefulSet.yaml | 2 +- .../manifests/custom/bucketConfig.yaml | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/datalake-metrics/manifests/compact/statefulSet.yaml b/apps/datalake-metrics/manifests/compact/statefulSet.yaml index 00445b360..cf3e0e7a4 100644 --- a/apps/datalake-metrics/manifests/compact/statefulSet.yaml +++ b/apps/datalake-metrics/manifests/compact/statefulSet.yaml @@ -9,7 +9,7 @@ metadata: name: thanos-compact namespace: datalake-metrics spec: - replicas: 1 + replicas: 0 selector: matchLabels: app.kubernetes.io/component: database-compactor diff --git a/apps/datalake-metrics/manifests/custom/bucketConfig.yaml b/apps/datalake-metrics/manifests/custom/bucketConfig.yaml index c993c3de9..75ccbf524 100644 --- a/apps/datalake-metrics/manifests/custom/bucketConfig.yaml +++ b/apps/datalake-metrics/manifests/custom/bucketConfig.yaml @@ -16,9 +16,17 @@ spec: kind: ClusterSecretStore name: doppler-auth-api target: - name: thanos-objectstorage template: data: + objstore.yml: |- + type: S3 + config: + bucket: metrics + endpoint: main-minio.minio.svc:9000 + access_key: {{ .access_key }} + secret_key: {{ .secret_key }} + insecure: true + prefix: thanos thanos.yaml: | type: S3 config: @@ -28,4 +36,3 @@ spec: secret_key: {{ .secret_key }} insecure: true prefix: thanos - engineVersion: v2