Use an ingress route
This commit is contained in:
parent
d4ae2055a7
commit
4c28ebea46
|
@ -1,51 +1,20 @@
|
||||||
---
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
#apiVersion: networking.k8s.io/v1
|
kind: IngressRoute
|
||||||
#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
|
|
||||||
|
|
||||||
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik-dashboard-ingress
|
name: traefik-dashboard
|
||||||
namespace: traefik
|
namespace: traefik
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
entryPoints:
|
||||||
- host: "k3st.***REMOVED***"
|
- websecure
|
||||||
http:
|
- traefik
|
||||||
paths:
|
routes:
|
||||||
- path: /dashboard
|
- kind: Rule
|
||||||
pathType: Prefix
|
match: Host(`k3st.***REMOVED***`)
|
||||||
backend:
|
priority: 10
|
||||||
service:
|
services:
|
||||||
name: traefik
|
- kind: Service
|
||||||
port:
|
name: traefik-helm
|
||||||
number: 9000
|
namespace: traefik
|
||||||
|
passHostHeader: true
|
||||||
|
port: 9000
|
||||||
|
weight: 10
|
Loading…
Reference in New Issue