Manually create a ingress resource for traefik dashboard
This commit is contained in:
parent
a26d94a5ac
commit
ac9812b60d
|
@ -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
|
|
@ -5,3 +5,4 @@ resources:
|
|||
- ./traefik-secrets.sops.yaml
|
||||
- ./helm-repository.yaml
|
||||
- ./helm-release.yaml
|
||||
- ./dashboard-ingres.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:
|
||||
|
|
Loading…
Reference in New Issue