2023-04-05 03:10:05 +00:00
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
2023-04-03 01:11:51 +00:00
|
|
|
metadata:
|
2023-04-05 03:11:51 +00:00
|
|
|
name: traefik-dashboard-ingress
|
2023-04-03 01:11:51 +00:00
|
|
|
namespace: traefik
|
2023-04-03 02:10:26 +00:00
|
|
|
annotations:
|
2023-04-05 02:42:19 +00:00
|
|
|
cert-manager.io/cluster-issuer: "letsencrypt-production"
|
2023-04-09 04:17:09 +00:00
|
|
|
# This might show an error in the dashboard if this middleware is not yet created by authentik
|
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
2023-04-03 01:11:51 +00:00
|
|
|
spec:
|
2023-04-05 03:10:05 +00:00
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- kind: Rule
|
2023-04-05 03:11:51 +00:00
|
|
|
match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api/`))
|
2023-04-05 03:10:05 +00:00
|
|
|
priority: 10
|
|
|
|
services:
|
|
|
|
- kind: Service
|
2023-04-05 03:11:51 +00:00
|
|
|
name: traefik
|
2023-04-05 03:10:05 +00:00
|
|
|
namespace: traefik
|
|
|
|
passHostHeader: true
|
|
|
|
port: 9000
|
2023-04-09 04:17:09 +00:00
|
|
|
weight: 10
|