Ingress object not processed by traefik 2.1

This is my deployed traefik snippet configuration:

spec:
  containers:
  - args:
    - --global.checknewversion=true
    - --global.sendanonymoususage=true
    - --entryPoints.traefik.address=:9000
    - --entryPoints.web.address=:8000
    - --entryPoints.websecure.address=:8443
    - --api.dashboard=true
    - --ping=true
    - --providers.kubernetescrd
    - --log.level=WARN
    image: traefik:2.1.3

As far I've been able to figure out reading documentation, traefik is able to process all Ingress resources.

I've performed kubectl apply -f ingress.yaml. ingress.yaml content is:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-web-app
annotations:
    kubernetes.io/ingress.class: "traefik"
spec:
tls:
    - secretName: traefik-cert
rules:
- host:
    http:
    paths:
    - path: /s1
        backend:
        serviceName: svc1
        servicePort: 8080
    - path: /s2
        backend:
        serviceName: svc2
        servicePort: 8080
    - path: /
        backend:
        serviceName: svc3
        servicePort: 8080

By other side, I've tried to deploy an IngressRoute instead of an straightforard Ingress:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: traefik-graylog
spec:
  entryPoints:
  - web
  routes:
  - kind: Rule
    match: Host(`graylog.localhost`)
    services:
    - name: graylog-web
      port: 9000

This IngressRoute is detected correctly, but the previously Ingress

Hello,

there are 2 providers:

so you have to enable the provider related to Ingress

--providers.kubernetesingress

Some additional questions:

  1. Can them both be enabled at the same time?
  2. In there any limitation on ingress provider in order to set tls passthrough?
  1. yes you can use several providers at the same time
  2. yes because passthrough is on the TCP router and not on the HTTP router. Ingress only handle HTTP router.

So, then in order to activate tls passthrough I need to create two objects:

  • An IngressRoute
  • An IngressRouteTCP
  • An TLSOption?