Interview Prep/Networking/TLS and certificate errors

cert-manager Certificate stuck with `Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'`.

IntermediateTroubleshootingTLS and certificate errors
Answer

Likely causes → The solver Ingress isn't picked up (wrong ingressClassName), DNS for the name doesn't point at the ingress yet, an HTTP→HTTPS redirect or auth middleware intercepts /.well-known/acme-challenge/, or a CDN caches the path.

Diagnose →

kubectl describe certificate app-tls
kubectl get challenges -A
kubectl describe challenge <name>
curl -v http://app.example.com/.well-known/acme-challenge/test

Fix → Set the right ingress class on the Issuer solver, fix DNS, exclude the challenge path from redirects and auth. For wildcards or private names use DNS-01.

Prevent → Alert on Certificates not Ready; prefer DNS-01 for internal hosts.

All Networking questions Roadmap: Networking for DevOps

More on TLS and certificate errors