From 643f5a67aca3b9e2cd5a9d6a7b6acb3aeed35ab1 Mon Sep 17 00:00:00 2001 From: Kliu <kliu@vivsoft.io> Date: Fri, 21 Feb 2025 14:05:41 -0500 Subject: [PATCH] initial commit to add MinIO config to loki storage Signed-off-by: Kliu <kliu@vivsoft.io> --- chart/templates/loki/values.yaml | 16 ++++++++++++++++ chart/values.yaml | 11 +++++++++++ 2 files changed, 27 insertions(+) diff --git a/chart/templates/loki/values.yaml b/chart/templates/loki/values.yaml index f0b67d1110..01eff62c40 100644 --- a/chart/templates/loki/values.yaml +++ b/chart/templates/loki/values.yaml @@ -3,6 +3,7 @@ {{- end }} {{- define "bigbang.defaults.loki" -}} +{{- $minioEnabled := (.Values.loki.minioObjectStorage.enabled) }} # hostname is deprecated and replaced with domain. But if hostname exists then use it. {{- $domainName := default .Values.domain .Values.hostname }} hostname: {{ $domainName }} @@ -73,6 +74,19 @@ promtail: enabled: true {{- end }} +{{- if $minioEnabled }} +minio: + enabled: true + tenant: + configSecret: + accessKey: {{ .Values.loki.minioObjectStorage.configSecret.accessKey }} + secretKey: {{ .Values.loki.minioObjectStorage.configSecret.secretKey }} + defaultUserCredentials: + username: {{ .Values.loki.minioObjectStorage.defaultUserCredentials.username }} + password: {{ .Values.loki.minioObjectStorage.defaultUserCredentials.password }} +{{- end }} + + loki: extraMemberlistConfig: bind_addr: @@ -82,6 +96,8 @@ loki: type: "filesystem" {{- else }} type: "s3" + # If MinIO enabled then enter MinIO ObjectConfig + # Else S3 below bucketNames: {{- toYaml .Values.loki.objectStorage.bucketNames | nindent 6 }} s3: diff --git a/chart/values.yaml b/chart/values.yaml index 49bd018a8e..3d0c99f081 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -716,6 +716,17 @@ loki: # -- Loki clusterName identifier for Promtail and Dashboards clusterName: "" + # -- Enable Big Bang MinIO dependency chart for Mimir + minioObjectStorage: + enabled: false + # -- MinIO root credentials + configSecret: + accessKey: "minio" + secretKey: "minio123" # default key, change this! + # Configures the Big Bang MinIO Tenant User Credentials + defaultUserCredentials: + username: "mimir-user" + password: "supersecret" objectStorage: # -- S3 compatible endpoint to use for connection information. -- GitLab