diff --git a/cluster/apps/traefik/dashboard-ingress.yaml b/cluster/apps/traefik/dashboard-ingress.yaml index 20ba30c..d2fb384 100644 --- a/cluster/apps/traefik/dashboard-ingress.yaml +++ b/cluster/apps/traefik/dashboard-ingress.yaml @@ -1,20 +1,40 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute +#apiVersion: traefik.containo.us/v1alpha1 +#kind: IngressRoute +#metadata: +# name: traefik-dashboard +# namespace: traefik +#spec: +# entryPoints: +# - websecure +# - traefik +# routes: +# - kind: Rule +# match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api`)) +# priority: 10 +# services: +# - kind: Service +# name: traefik-helm +# namespace: traefik +# passHostHeader: true +# port: 9000 +# weight: 10 + +apiVersion: networking.k8s.io/v1 +kind: Ingress metadata: - name: traefik-dashboard + name: traefik-dashboard-ingress namespace: traefik + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure spec: - entryPoints: - - websecure - - traefik - routes: - - kind: Rule - match: Host(`k3st.***REMOVED***`) - priority: 10 - services: - - kind: Service - name: traefik-helm - namespace: traefik - passHostHeader: true - port: 9000 - weight: 10 \ No newline at end of file + rules: + - host: "k3st.***REMOVED***" + http: + paths: + - path: /dashboard + pathType: Prefix + backend: + service: + name: traefik-helm + port: + number: 9000 \ No newline at end of file