2022-03-30 17:11:15 +00:00
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: stripprefix
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: "traefik"
|
|
|
|
spec:
|
|
|
|
stripPrefix:
|
|
|
|
prefixes:
|
|
|
|
- /dashboard
|
|
|
|
|
|
|
|
---
|
2022-05-15 19:43:20 +00:00
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
2022-03-30 17:11:15 +00:00
|
|
|
metadata:
|
|
|
|
name: kubernetes-dashboard-ingress
|
|
|
|
namespace: kubernetes-dashboard
|
|
|
|
annotations:
|
|
|
|
"traefik.ingress.kubernetes.io/router.middlewares": default-stripprefix@kubernetescrd
|
|
|
|
spec:
|
2022-05-15 19:43:20 +00:00
|
|
|
entryPoints:
|
|
|
|
- web
|
|
|
|
routes:
|
|
|
|
- match: Host(`localhost`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: kubernetes-dashboard
|
|
|
|
port: 80
|