rancher-charts/charts/rancher-project-monitoring/0.2.0+up0.2.1/templates/prometheus/federate.yaml

11 lines
449 B
YAML

{{- if and .Values.prometheus.enabled .Values.federate.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "project-prometheus-stack.fullname" . }}-federate
namespace: {{ template "project-prometheus-stack.namespace" . }}
labels: {{ include "project-prometheus-stack.labels" . | nindent 4 }}
data:
federate-scrape-config.yaml: {{ tpl (.Files.Get "files/federate/federate-scrape-config.yaml" ) $ | b64enc | quote }}
{{- end }}