{{- if index .Values.ocAuth.enabled }} apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: oc-auth-ingress spec: entryPoints: - web routes: - kind: Rule match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`) priority: 10 services: - kind: Service name: oc-auth-svc port: 8094 --- apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: strip-auth-prefix spec: stripPrefix: prefixes: - "/auth" {{- end }}