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