CoreDNS does not pick up IngressRoute + accessing dashboard

Hi,

I'm coming from ingress-nginx and having 2 problems at the moment with Traefik:

I have this default ingress from the helm chart:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  annotations:
    helm.sh/hook: post-install,post-upgrade
  creationTimestamp: '2022-04-30T12:28:23Z'
  generation: 1
  labels:
    app.kubernetes.io/instance: traefik-ingress
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: traefik
    helm.sh/chart: traefik-10.19.4
  name: traefik-ingress-dashboard
  namespace: traefik-ingress
  resourceVersion: '249233757'
  selfLink: >-
    /apis/traefik.containo.us/v1alpha1/namespaces/traefik-ingress/ingressroutes/traefik-ingress-dashboard
  uid: 35bb79a8-24e1-47e4-9717-8eb89f5f5864
spec:
  entryPoints:
    - traefik
  routes:
    - kind: Rule
      match: PathPrefix(`/dashboard`) || PathPrefix(`/api`)
      services:
        - kind: TraefikService
          name: api@internal

I have a service of type loadbalancer with an external IP of 10.1.8.154 and I still cannot access http://10.1.8.154/dashboard

I also port forwaded (via lens) port 9000 and that doesn't seem to work either.

I also tried to create this ingress:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: traefik-dashboard.test.mydomain.caom
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"traefik.containo.us/v1alpha1","kind":"IngressRoute","metadata":{"annotations":{"external-dns.alpha.kubernetes.io/hostname":"traefik-dashboard.test.mydomain.caom"},"name":"dashboard","namespace":"traefik-ingress"},"spec":{"entryPoints":["web"],"routes":[{"kind":"Rule","match":"Host(`traefik-dashboard.test.mydomain.caom`)
      \u0026\u0026 (PathPrefix(`/dashboard`) ||
      PathPrefix(`/api`))","services":[{"kind":"TraefikService","name":"api@internal"}]}]}}
  creationTimestamp: '2022-04-30T12:12:39Z'
  generation: 1
  name: dashboard
  namespace: traefik-ingress
  resourceVersion: '249230490'
  selfLink: >-
    /apis/traefik.containo.us/v1alpha1/namespaces/traefik-ingress/ingressroutes/dashboard
  uid: 2a6ae45f-bf3a-4523-bf2c-fd7ff65fda51
spec:
  entryPoints:
    - web
  routes:
    - kind: Rule
      match: >-
        Host(`traefik-dashboard.test.mydomain.caom`) &&
        (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
      services:
        - kind: TraefikService
          name: api@internal

and I expected traefik-dashboard.test.mydomain.com to resolve against my coredns but it does not. When I create ingress'es in nginx - coredns resolves the name.

What am I missing?

You did test with a trailing / at the end such as http://10.1.8.154/dashboard/ right? Trailing slashes are annoying required by Traefik, yet not part of the defined PathPrefix.