Files
devops-infra-helm-charts-gcp/helm-templates/mimir-distributed/templates/gateway/gateway-route.yaml
T
2026-08-26 03:39:42 +05:30

26 lines
716 B
YAML

{{- if .Values.gateway.route.enabled }}
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: {{ include "mimir.resourceName" (dict "ctx" . "component" "gateway") }}
labels:
{{- include "mimir.labels" (dict "ctx" . "component" "gateway") | nindent 4 }}
{{- with .Values.gateway.route.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace | quote }}
spec:
host: {{ tpl .Values.gateway.route.host $ | quote }}
to:
kind: Service
name: {{ include "mimir.gateway.service.name" . }}
weight: 100
port:
targetPort: http-metrics
{{- with .Values.gateway.route.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}