From ac9812b60d0cf9af6743fc951586112c67cace5d Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 2 Apr 2023 21:11:51 -0400 Subject: [PATCH] Manually create a ingress resource for traefik dashboard --- cluster/apps/traefik/dashboard-ingress.yaml | 30 +++++++++++++++++++++ cluster/apps/traefik/kustomization.yaml | 1 + cluster/apps/traefik/traefik-values.yaml | 10 +++---- 3 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 cluster/apps/traefik/dashboard-ingress.yaml diff --git a/cluster/apps/traefik/dashboard-ingress.yaml b/cluster/apps/traefik/dashboard-ingress.yaml new file mode 100644 index 0000000..b4623fe --- /dev/null +++ b/cluster/apps/traefik/dashboard-ingress.yaml @@ -0,0 +1,30 @@ +--- +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 \ No newline at end of file diff --git a/cluster/apps/traefik/kustomization.yaml b/cluster/apps/traefik/kustomization.yaml index e38e97d..c49d04a 100644 --- a/cluster/apps/traefik/kustomization.yaml +++ b/cluster/apps/traefik/kustomization.yaml @@ -5,3 +5,4 @@ resources: - ./traefik-secrets.sops.yaml - ./helm-repository.yaml - ./helm-release.yaml +- ./dashboard-ingres.yaml diff --git a/cluster/apps/traefik/traefik-values.yaml b/cluster/apps/traefik/traefik-values.yaml index 0c939df..f45fcc7 100644 --- a/cluster/apps/traefik/traefik-values.yaml +++ b/cluster/apps/traefik/traefik-values.yaml @@ -54,11 +54,11 @@ env: name: cloudflare-credentials # Disable Dashboard -ingressRoute: - dashboard: - enabled: true - matchRule: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api`)) - entryPoints: ["websecure"] +#ingressRoute: +# dashboard: +# enabled: true +# matchRule: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api`)) +# entryPoints: ["websecure"] # Persistent Storage persistence: