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