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
|
- ./traefik-secrets.sops.yaml
|
||||||
- ./helm-repository.yaml
|
- ./helm-repository.yaml
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
||||||
|
- ./dashboard-ingres.yaml
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue