2025-01-10 16:41:41 +01:00
|
|
|
{{- 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:
|
2025-01-21 15:25:25 +01:00
|
|
|
{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
|
|
|
|
- name: forward-auth
|
|
|
|
{{- end }}
|
2025-01-10 16:41:41 +01:00
|
|
|
- name: strip-catalog-prefix
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: strip-catalog-prefix
|
|
|
|
spec:
|
|
|
|
stripPrefix:
|
|
|
|
prefixes:
|
|
|
|
- "/catalog"
|
|
|
|
{{- end }}
|