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