From 4c28ebea462742eef136464308fb299cb237357f Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 2 Apr 2023 22:03:53 -0400 Subject: [PATCH] Use an ingress route --- cluster/apps/traefik/dashboard-ingress.yaml | 65 ++++++--------------- 1 file changed, 17 insertions(+), 48 deletions(-) diff --git a/cluster/apps/traefik/dashboard-ingress.yaml b/cluster/apps/traefik/dashboard-ingress.yaml index ed7c57d..20ba30c 100644 --- a/cluster/apps/traefik/dashboard-ingress.yaml +++ b/cluster/apps/traefik/dashboard-ingress.yaml @@ -1,51 +1,20 @@ ---- -#apiVersion: networking.k8s.io/v1 -#kind: Ingress -#metadata: -# name: traefik-dashboard -# namespace: traefik -# annotations: -## cert-manager.io/cluster-issuer: "letsencrypt-production" -## hajimari.io/appName: "traefik" -## hajimari.io/enable: "true" -## hajimari.io/icon: "web" -# traefik.ingress.kubernetes.io/router.entrypoints: "websecure" -## traefik.ingress.kubernetes.io/router.middlewares: "networking-traefik-forward-auth@kubernetescrd" -#spec: -## ingressClassName: "traefik" -## tls: -## - hosts: -## - "traefik.${SECRET_DOMAIN}" -## secretName: "traefik-dashboard-tls" -# rules: -# - host: "k3st.***REMOVED***" -# http: -# paths: -# - path: /dashboard -# pathType: Prefix -# backend: -# service: -# name: traefik -# port: -# number: 9000 - - -apiVersion: networking.k8s.io/v1 -kind: Ingress +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute metadata: - name: traefik-dashboard-ingress + name: traefik-dashboard namespace: traefik - annotations: - traefik.ingress.kubernetes.io/router.entrypoints: websecure spec: - rules: - - host: "k3st.***REMOVED***" - http: - paths: - - path: /dashboard - pathType: Prefix - backend: - service: - name: traefik - port: - number: 9000 \ No newline at end of file + 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