Update kubernetes dashboard to be accessible from localhost, waiting for TLS
This commit is contained in:
parent
2bf3927623
commit
b4f767a00f
@ -10,23 +10,19 @@ spec:
|
|||||||
- /dashboard
|
- /dashboard
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: Ingress
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: kubernetes-dashboard-ingress
|
name: kubernetes-dashboard-ingress
|
||||||
namespace: kubernetes-dashboard
|
namespace: kubernetes-dashboard
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "traefik"
|
|
||||||
"traefik.ingress.kubernetes.io/router.middlewares": default-stripprefix@kubernetescrd
|
"traefik.ingress.kubernetes.io/router.middlewares": default-stripprefix@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
entryPoints:
|
||||||
- host: dashboard.localhost
|
- web
|
||||||
http:
|
routes:
|
||||||
paths:
|
- match: Host(`localhost`)
|
||||||
- path: /
|
kind: Rule
|
||||||
pathType: Prefix
|
services:
|
||||||
backend:
|
- name: kubernetes-dashboard
|
||||||
service:
|
port: 80
|
||||||
name: kubernetes-dashboard
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
|
Loading…
Reference in New Issue
Block a user