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?