diff --git a/chart/templates/loki/values.yaml b/chart/templates/loki/values.yaml index f0b67d1110152ace4d055b35d8d788e42212075d..01eff62c40a1600101d10a85647a8dd5cea1debb 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 49bd018a8e8adce255d72bdebe5931ec961dafd9..3d0c99f0812e803b2fc217800db26b480062a5ad 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.