There will be a warning msg said namespace "MY_NAMESPACE" is ignored in cross-provider context" providerName=kubernetescrd serviceName=api@internal if I created the IngressRoute:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-ashboard
namespace: MY_NAMESPACE
spec:
entryPoints:
- http
- https
routes:
- match: Host(`traefik-dashboard-MY_DOMAIN`)
kind: Rule
middlewares:
- name: http-auth
priority: 50
services:
- name: api@internal
kind: TraefikService
And I got an error 404 page while accessing the domain.
Env:
Kubernetes: 1.16.2
Traefik: 2.1.1
Ingress: k8s ingress for all the host and traefik IngressRoute for global-http-redirect-to-https and traefik-dashboard.
TLS: true
Args:
volumeMounts:
- mountPath: "/config"
name: "config"
- mountPath: "/crts"
name: "tls-certs"
args:
- --api
- --log.level=INFO
- --accesslog
- --entrypoints.http.Address=:80
- --entrypoints.https.Address=:443
- --providers.kubernetesingress
- --providers.kubernetescrd