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