{{- if index .Values "mongo-express" "enabled" }} apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: hydra-ingress spec: entryPoints: - web routes: - kind: Rule match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`) priority: 10 services: - kind: Service name: {{ .Release.Name }}-mongo-express passHostHeader: true port: 8081 {{- end }}