Update kubernetes dashboard to be accessible from localhost, waiting for TLS

This commit is contained in:
Tanguy Herbron 2022-05-15 21:43:20 +02:00
parent 2bf3927623
commit b4f767a00f

View File

@ -10,23 +10,19 @@ spec:
- /dashboard
---
apiVersion: networking.k8s.io/v1
kind: Ingress
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: kubernetes-dashboard-ingress
namespace: kubernetes-dashboard
annotations:
kubernetes.io/ingress.class: "traefik"
"traefik.ingress.kubernetes.io/router.middlewares": default-stripprefix@kubernetescrd
spec:
rules:
- host: dashboard.localhost
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubernetes-dashboard
port:
number: 80
entryPoints:
- web
routes:
- match: Host(`localhost`)
kind: Rule
services:
- name: kubernetes-dashboard
port: 80