Files
infrastructure/clusters/cl01tl/applications/koel/templates/ingress-route.yaml
2024-07-31 19:21:17 -05:00

34 lines
902 B
YAML

apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: koel
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: koel
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`koel.alexlebens.net`)
middlewares:
- name: authentik-koel
namespace: {{ .Release.Namespace }}
priority: 10
services:
- kind: Service
name: koel
port: 80
- kind: Rule
match: Host(`koel.alexlebens.net`) && PathPrefix(`/outpost.goauthentik.io/`)"
priority: 15
services:
- kind: Service
name: authentik-outpost-proxy
port: 9000
namespace: authentik