Commit a2ad74ef by shanewxy

Allow for configuring remote read and write endpoints

parent b7be5126
......@@ -151,10 +151,13 @@ spec:
serviceMonitorSelector:
{{ toYaml .Values.serviceMonitorSelector | indent 4 }}
{{- end }}
{{- if and (eq .Values.level "project") (eq .Values.sync.mode "remote") }}
{{- if .Values.remoteRead }}
remoteRead:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
url: {{ printf "%s%s" .Values.sync.target .Values.sync.path }}
{{ toYaml .Values.remoteRead | indent 4 }}
{{- end }}
{{- if .Values.remoteWrite }}
remoteWrite:
{{ toYaml .Values.remoteWrite | indent 4 }}
{{- end }}
{{ include "rule.namespace.selector" . | indent 2}}
{{ include "rule.selector" . | indent 2 }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment