rancher-partner-charts/charts/kubecost/cost-analyzer/1.106.0/templates/mimir-proxy-configmap-templ...

18 lines
529 B
YAML

{{- if .Values.global.mimirProxy }}
{{- if .Values.global.mimirProxy.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "cost-analyzer.fullname" . }}-mimir-proxy
namespace: {{ .Release.Namespace }}
data:
default.conf: |
server {
listen {{ .Values.global.mimirProxy.port }};
location / {
proxy_pass {{ .Values.global.mimirProxy.mimirEndpoint }};
proxy_set_header X-Scope-OrgID "{{ .Values.global.mimirProxy.orgIdentifier }}";
}
}
{{- end }}
{{- end }}