k3s-cluster/cluster/core/networking/traefik/dashboard-ingress.yaml

23 lines
696 B
YAML
Raw Normal View History

2023-04-05 03:10:05 +00:00
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-dashboard-ingress
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"
# 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
spec:
2023-04-05 03:10:05 +00:00
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api/`))
2023-04-05 03:10:05 +00:00
priority: 10
services:
- kind: Service
name: traefik
2023-04-05 03:10:05 +00:00
namespace: traefik
passHostHeader: true
port: 9000
weight: 10