[bitnami/thanos] Add support to configurable replica label (#5512)

Co-authored-by: Guilherme Souza <guilhermef@users.noreply.github.com>
This commit is contained in:
Guilherme Souza
2021-02-17 08:25:42 +01:00
committed by GitHub
parent 8573a62618
commit 447256b243
5 changed files with 14 additions and 4 deletions

View File

@@ -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

View File

@@ -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 }}