<p>I deployed Traefik helm chart and created IngressRoute for dashboard and Middleware for Basic Auth, instead of dashboard I see 404 error.</p>
<p>Ingress also returns 404.</p>
<p>IngressRoute and Ingress also don't work with other services</p>
<p>Traefik - 2.7.1
k8s - v1.22.8-gke.202 (GKE Autopilot)</p>
<p>Helm values:</p>
<pre class="lang-yaml prettyprint-override"><code>additionalArguments:
  - &quot;--log.level=DEBUG&quot;
  - &quot;--entrypoints.web.http.redirections.entryPoint.to=:443&quot;
  - &quot;--providers.file.filename=/config/dynamic.yaml&quot;

volumes:
  - name: tls-cert
    mountPath: &quot;/certs&quot;
    type: secret
  - name: traefik-config
    mountPath: &quot;/config&quot;
    type: configMap

service:
  spec:
    externalTrafficPolicy: Local
    loadBalancerIP: &quot;xxx.xxx.xxx.xxx&quot;

ingressRoute:
  dashboard:
    enabled: false
</code></pre>
<p>Configmap:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: traefik-config
  namespace: ingress
data:
  dynamic.yaml: |
    tls:
      stores:
        default:
          defaultCertificate:
            certFile: '/certs/tls.crt'
            keyFile: '/certs/tls.key'

</code></pre>
<p>And IngressRoute:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: dashboard
  namespace: ingress
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`traefik.example.domain`)
      kind: Rule
      services:
        - name: api@internal
          kind: TraefikService
      middlewares:
        - name: admin-auth
          namespace: ingress
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: admin-auth
spec:
  basicAuth:
    namespace: ingress
    secret: ingress-authsecret
---
apiVersion: v1
kind: Secret
metadata:
  name: ingress-authsecret
  namespace: ingress
data:
  users: some-base64-encoded-credentials
</code></pre>

pagislav
<p>Solution:</p>
<p>IngressRoute was ignored because no tls configuration was prodided</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: dashboard
  namespace: ingress
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`traefik.example.domain`)
      kind: Rule
      services:
        - name: api@internal
          kind: TraefikService
      middlewares:
        - name: admin-auth
          namespace: ingress
  tls:
    secretName: tls-cert # here
</code></pre>
<p>So, I remove default certificate configmap and add tls paramether to dynamic conf</p>
