From b4f767a00fcbf0371d462053ba7a53b57a257ce7 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 15 May 2022 21:43:20 +0200 Subject: [PATCH] Update kubernetes dashboard to be accessible from localhost, waiting for TLS --- dashboard/ingress.yaml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/dashboard/ingress.yaml b/dashboard/ingress.yaml index 34967e5..83c6102 100644 --- a/dashboard/ingress.yaml +++ b/dashboard/ingress.yaml @@ -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