<p>I have Kubernetes Cluster with Ingress/Traefik controller</p>

<p>Also, I installed the dashboard using the standard config from here: <a href="https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml" rel="noreferrer">https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml</a></p>

<p>I'm trying to access the Dashboard through Ingress, but I get 404 error</p>

<pre><code>404 page not found
</code></pre>

<p>My ingress.yml file looks like this</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: "traefik"
  name: app-ingress-system
  namespace: kube-system
spec:
  tls:
  - hosts:
    - dashboard.domain.com
    secretName: kubernetes-dashboard-certs
  rules:
  - host: dashboard.domain.com
    http:
      paths:
      - path: /
        backend:
          serviceName: kubernetes-dashboard
          servicePort: 443
</code></pre>

<p>I've tried different - path: (like /dashboard, /proxy) same result</p>

Taras  Katrichenko
<p>This occurs because <code>kubernetes-dashboard-certs</code> doesnot have the file <code>tls.crt</code> and <code>tls.key</code> which are expected by traefik. You should get this in the traefik logs.</p>

<p>Next problems will be between traefik certificates and dashboard certificates. I still not understand how to fix properly this and configure traefik with the option :</p>

<pre><code> ssl.insecureSkipVerify: "true"
</code></pre>

<p>The last one I had, is that http endpoint doesnot accept login, then finally I declare the ingress that redirect http to https like this :</p>

<pre><code>kubectl apply -f - &lt;&lt; EOF
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard
  annotations:
    kubernetes.io/ingress.class: traefik
    traefik.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  rules:
    - host: dashboard.domain.com
      http:
        paths:
          - path: /
            backend:
              serviceName: kubernetes-dashboard
              servicePort: 443
EOF
</code></pre>
