<p>Having problem bringing up Traefik dashboard on Kubernetes environment, the following is my traefik deployment setting:</p>
<pre><code>kind: Deployment
apiVersion: apps/v1
metadata:
  namespace: ingress-traefik
  name: traefik
  labels:
    app: traefik

spec:
  replicas: 1
  selector:
    matchLabels:
      app: traefik
  template:
    metadata:
      labels:
        app: traefik
    spec:
      serviceAccountName: traefik-ingress-controller
      containers:
        - name: traefik
          image: traefik:v2.2
          ports:
            - name: web
              containerPort: 80
            - name: websecure
              containerPort: 443
            - name: admin
              containerPort: 8080
          args:
            - --api
            - --api.dashboard=true
            - --providers.kubernetesingress
            - --providers.kubernetescrd
            - --entrypoints.web.Address=:80
            - --entrypoints.websecure.Address=:443
            - --ping.entryPoint=web
            - --log.level=debug
</code></pre>
<p>and the dashboard ingressRoute setting:</p>
<pre><code>apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-dashboard
  namespace: ingress-traefik
spec:
  entryPoints:
    - web
    - websecure
  routes:
  - match: Host(`traefik.example.io`) &amp;&amp; (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
    kind: Rule
    services:
    - name: api@internal
      kind: TraefikService
  tls:
    secretName: cert-stage-wildcard
    domains:
      - main: example.io
        sans:
          - &quot;*.example.io&quot;
</code></pre>
<p>When curl the dashboard site returns a &quot;404&quot;:</p>
<pre><code>$ curl -v https://traefik.example.io/dashboard
*   Trying 159.203.52.215:443...
* TCP_NODELAY set
* Connected to traefik.example.io (159.203.52.215) port 443 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /home/ken.tsoi/anaconda3/ssl/cacert.pem
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=*.example.io
*  start date: Oct 28 16:10:10 2020 GMT
*  expire date: Jan 26 16:10:10 2021 GMT
*  subjectAltName: host &quot;traefik.example.io&quot; matched cert's &quot;*.example.io&quot;
*  issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
*  SSL certificate verify ok.
&gt; GET /dashboard HTTP/1.1
&gt; Host: traefik.example.io
&gt; User-Agent: curl/7.68.0
&gt; Accept: */*
&gt; 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Mark bundle as not supporting multiuse
&lt; HTTP/1.1 404 Not Found
&lt; Content-Type: text/plain; charset=utf-8
&lt; X-Content-Type-Options: nosniff
&lt; Date: Thu, 29 Oct 2020 17:51:07 GMT
&lt; Content-Length: 19
&lt; 
404 page not found
* Connection #0 to host traefik.example.io left intact
</code></pre>
<p>Checking the log of traefik, did not see any updates when doing &quot;curl&quot;, however, doing a &quot;grep dashboard&quot; did see the dashboard ingressRoute has been configured:</p>
<pre><code>time=&quot;2020-10-29T17:26:53Z&quot; level=debug msg=&quot;Configuration received from provider kubernetescrd: {\&quot;http\&quot;:{\&quot;routers\&quot;:{\&quot;ingress-traefik-traefik-dashboard-e1cd6df5083c9bc8083c\&quot;:{\&quot;entryPoints\&quot;:[\&quot;web\&quot;,\&quot;websecure\&quot;],\&quot;service\&quot;:\&quot;api@internal\&quot;,\&quot;rule\&quot;:\&quot;Host(`traefik.example.io`) \\u0026\\u0026 (PathPrefix(`/api`) || PathPrefix(`/dashboard`))\&quot;,\&quot;tls\&quot;:{\&quot;domains\&quot;:[{\&quot;main\&quot;:\&quot;example.io\&quot;,\&quot;sans\&quot;:[\&quot;*.example.io\&quot;]}]}}},\&quot;middlewares\&quot;:{\&quot;ingress-traefik-traefikbasicauth\&quot;:{\&quot;basicAuth\&quot;:{\&quot;users\&quot;:[\&quot;testuser:$apr1$sS2w2/sx$aw4f8LNSyypdknEUOqcIp/\&quot;],\&quot;realm\&quot;:\&quot;Traefik\&quot;}}}},\&quot;tcp\&quot;:{},\&quot;udp\&quot;:{},\&quot;tls\&quot;:{}}&quot; providerName=kubernetescrd
time=&quot;2020-10-29T17:26:53Z&quot; level=debug msg=&quot;Added outgoing tracing middleware api@internal&quot; middlewareType=TracingForwarder entryPointName=web routerName=ingress-traefik-traefik-dashboard-e1cd6df5083c9bc8083c@kubernetescrd middlewareName=tracing 
</code></pre>
<p>(BTW: I have used basicAuth for authentication, it is working so I omit it from the ingressRoute)</p>
<p>Can anyone point out what the problem may be?</p>

<p>This problem had been resolved (Not sure if this is a solution or only a workaround):</p>
<p>Please check here: <a href="https://stackoverflow.com/a/64709491/6716204">https://stackoverflow.com/a/64709491/6716204</a></p>
<p>The key point is, I set <code>api.insecure=true</code>, so that I can bring up the dashboard locally, and then do the routing like other services.</p>
