How to use public ip and port visit traefik dashboard?

What did you do?

I tried add a service, but it not works

apiVersion: v1
kind: Service
  name: traefik-dashboard
  namespace: kube-system
    - protocol: TCP
      name: web
      port: 8000
      targetPort: web
  selector: traefik
  type: NodePort

What did you see instead?

404 not found

What version of Traefik are you using?

In k3s v1.23.9+k3s1, used image rancher/mirrored-library-traefik:2.6.2

What is your environment & configuration?

- args:
  - --global.checknewversion
  - --global.sendanonymoususage
  - --entrypoints.metrics.address=:9100/tcp
  - --entrypoints.traefik.address=:9000/tcp
  - --entrypoints.web.address=:8000/tcp
  - --entrypoints.websecure.address=:8443/tcp
  - --api.dashboard=true
  - --ping=true
  - --metrics.prometheus=true
  - --metrics.prometheus.entrypoint=metrics
  - --providers.kubernetescrd
  - --providers.kubernetesingress
  - --providers.kubernetesingress.ingressendpoint.publishedservice=kube-system/traefik
  - --entrypoints.websecure.http.tls=true
  image: rancher/mirrored-library-traefik:2.6.2