Unable to create certificate with cert-manager using Traefik 2.6.3

Hi,

For some reason the ingress class traefik in the object ClusterIssuer is no longer working to achieve the http01 challenge while using Traefik 2.6.3.

I rolled back to Traefik 2.6.1 and the following ClusterIssuer and Certificate worked fine:

apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: prod-traefik-letsencrypt-prod 
spec:
  acme:
    server: https://acme-v02.api.letsencrypt.org/directory
    # server: https://acme-staging-v02.api.letsencrypt.org/directory
    email: devops@assanet.com
    privateKeySecretRef:
      name: prod-traefik-letsencrypt-prod
    solvers:
      - http01:
          ingress:
            class: traefik
            podTemplate:
              spec:
                nodeSelector:
                  "kubernetes.io/os": linux                 
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: prod-traefik-tls
  namespace: cert-manager
  annotations:
    cert-manager.io/cluster-issuer: prod-traefik-letsencrypt-prod 
spec:
  commonName: example.com
  secretName: prod-traefik-tls
  dnsNames:
    - example.com
  issuerRef:
    name: prod-traefik-letsencrypt-prod
    kind: ClusterIssuer

Cert-manager error message: Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'

I wonder what you should I use as ingress class in the cluster issuer http solver while using Traefik 2.6.3?

Anyone with the same issue?

After deeper investigation I'm confident that ingress class traefik is no longer working in Traefik 2.6.3 but I don't know what else to use instead, I already tried with the ingress class name define for the ingress in the values.yaml file but it didn't work. Any help will be highly appreciated.

It seems your issue is related with k8s, I would add that as tag to your post.

(Not sure why this post was actually listed in the "recent" posts)