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: