Manually create a ingress resource for traefik dashboard

This commit is contained in:
SeanOMik 2023-04-02 21:11:51 -04:00
parent a26d94a5ac
commit ac9812b60d
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 36 additions and 5 deletions

View File

@ -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

View File

@ -5,3 +5,4 @@ resources:
- ./traefik-secrets.sops.yaml - ./traefik-secrets.sops.yaml
- ./helm-repository.yaml - ./helm-repository.yaml
- ./helm-release.yaml - ./helm-release.yaml
- ./dashboard-ingres.yaml

View File

@ -54,11 +54,11 @@ env:
name: cloudflare-credentials name: cloudflare-credentials
# Disable Dashboard # Disable Dashboard
ingressRoute: #ingressRoute:
dashboard: # dashboard:
enabled: true # enabled: true
matchRule: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api`)) # matchRule: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api`))
entryPoints: ["websecure"] # entryPoints: ["websecure"]
# Persistent Storage # Persistent Storage
persistence: persistence: