Skipping Kubernetes event kind *v1.Ingress

Hi all,

I deployed Traefik v2.6.1 using the official Helm chart.
Then, I have an Ingress like this:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-app
  annotations:
    kubernetes.io/ingress.class: traefik
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
  rules:
  - host: test.abc.com
    http:
      paths:
      - backend:
          service:
            name: my-app
            port:
              number: 8000
        path: /
        pathType: Prefix

However, it didn't work. It returned 404 when I accessed. I checked the debug log on the Traefik pod and find this log:

time="2022-03-23T18:06:02Z" level=debug msg="Skipping Kubernetes event kind *v1.Ingress" providerName=kubernetes

Can anyone tell me what is the possible issue here?
Thanks in advance.

I solved this issue, so I write it down here in case anyone face the same issue. First of all, I think Traefik really wants to discourage ppl from using Ingress, so:

  • The logs do not provide the actual issue (even with DEBUG log), and it just returns 404
  • In the document, there is no clear explanation on how to do this configuration.

So, in my case, I need to do the following:

  • Deploy the Traefik Helm chart with the value "ports.websecure.tls.enabled=true"
  • Use "ingressClassName: traefik" in the Ingress, instead of the annocation, so the Ingress looks like this:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: service-webchat
  annotations:
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
  ingressClassName: traefik
  tls:
  - secretName: tls-traefik
  rules:
  - host: test.abc.com
    http:
      paths:
      - backend:
          service:
            name: my-app
            port:
              number: 8000
        path: /
        pathType: Prefix

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.