Commit a2ad74ef by shanewxy

Allow for configuring remote read and write endpoints

parent b7be5126
...@@ -151,10 +151,13 @@ spec: ...@@ -151,10 +151,13 @@ spec:
serviceMonitorSelector: serviceMonitorSelector:
{{ toYaml .Values.serviceMonitorSelector | indent 4 }} {{ toYaml .Values.serviceMonitorSelector | indent 4 }}
{{- end }} {{- end }}
{{- if and (eq .Values.level "project") (eq .Values.sync.mode "remote") }} {{- if .Values.remoteRead }}
remoteRead: remoteRead:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token {{ toYaml .Values.remoteRead | indent 4 }}
url: {{ printf "%s%s" .Values.sync.target .Values.sync.path }} {{- end }}
{{- if .Values.remoteWrite }}
remoteWrite:
{{ toYaml .Values.remoteWrite | indent 4 }}
{{- end }} {{- end }}
{{ include "rule.namespace.selector" . | indent 2}} {{ include "rule.namespace.selector" . | indent 2}}
{{ include "rule.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