mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/thanos] Add support to configurable replica label (#5512)
Co-authored-by: Guilherme Souza <guilhermef@users.noreply.github.com>
This commit is contained in:
@@ -28,4 +28,4 @@ name: thanos
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-thanos
|
||||
- https://thanos.io
|
||||
version: 3.9.1
|
||||
version: 3.10.0
|
||||
|
||||
@@ -433,6 +433,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
|
||||
|-----------------------------------------------|--------------------------------------------------------------------------------------------------------------|--------------------------------|
|
||||
| `ruler.enabled` | Enable/disable Thanos Ruler component | `false` |
|
||||
| `ruler.logLevel` | Thanos Ruler log level | `info` |
|
||||
| `ruler.replicaLabel` | Label to treat as a replica indicator along which data is deduplicated | `replica` |
|
||||
| `ruler.dnsDiscovery.enabled` | Enable Query APIs discovery via DNS | `true` |
|
||||
| `ruler.alertmanagers` | Alermanager URLs array | `[]` |
|
||||
| `ruler.hostAliases` | Add deployment host aliases | `[]` |
|
||||
@@ -488,6 +489,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
|
||||
|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
|
||||
| `receive.enabled` | Enable/disable Thanos Receive component | `false` |
|
||||
| `receive.logLevel` | Thanos Receive log level | `info` |
|
||||
| `receive.replicaLabel` | Label to treat as a replica indicator along which data is deduplicated | `replica` |
|
||||
| `receive.alertmanagers` | Alermanager URLs array | `[]` |
|
||||
| `receive.extraFlags` | Extra Flags to passed to Thanos Receive | `[]` |
|
||||
| `receive.hostAliases` | Add deployment host aliases | `[]` |
|
||||
|
||||
@@ -74,7 +74,7 @@ spec:
|
||||
- --receive.replication-factor=1
|
||||
- --objstore.config=$(OBJSTORE_CONFIG)
|
||||
- --tsdb.path=/var/thanos/receive
|
||||
- --label=replica="$(NAME)"
|
||||
- --label={{ .Values.receive.replicaLabel }}="$(NAME)"
|
||||
- --label=receive="true"
|
||||
- --tsdb.retention=15d
|
||||
- --receive.local-endpoint=127.0.0.1:10901
|
||||
|
||||
@@ -93,9 +93,9 @@ spec:
|
||||
{{- if and $query.enabled .Values.ruler.dnsDiscovery.enabled }}
|
||||
- --query=dnssrv+_http._tcp.{{ include "common.names.fullname" . }}-query.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
|
||||
{{- end }}
|
||||
- --label=replica="$(POD_NAME)"
|
||||
- --label={{ .Values.ruler.replicaLabel }}="$(POD_NAME)"
|
||||
- --label=ruler_cluster="{{ .Values.ruler.clusterName }}"
|
||||
- --alert.label-drop=replica
|
||||
- --alert.label-drop={{ .Values.ruler.replicaLabel }}
|
||||
- --objstore.config-file=/conf/objstore/objstore.yml
|
||||
- --rule-file=/conf/rules/ruler.yml
|
||||
{{- range .Values.ruler.queries }}
|
||||
|
||||
@@ -1507,6 +1507,10 @@ ruler:
|
||||
##
|
||||
logLevel: info
|
||||
|
||||
## Label to treat as a replica indicator along which data is deduplicated
|
||||
##
|
||||
replicaLabel: replica
|
||||
|
||||
## Provide any additional annotations which may be required
|
||||
##
|
||||
serviceAccount:
|
||||
@@ -1761,6 +1765,10 @@ receive:
|
||||
##
|
||||
logLevel: info
|
||||
|
||||
## Label to treat as a replica indicator along which data is deduplicated
|
||||
##
|
||||
replicaLabel: replica
|
||||
|
||||
## Provide any additional annotations which may be required
|
||||
##
|
||||
serviceAccount:
|
||||
|
||||
Reference in New Issue
Block a user