Interview Prep/Kubernetes/Services, Ingress and DNS

A new Ingress with TLS serves the controller's default certificate. What is wrong?

IntermediateScenarioServices, Ingress and DNS
Answer

Situation read → Browsers show "Kubernetes Ingress Controller Fake Certificate".

What I'd do →

  1. kubectl describe ingress to see the TLS section and secret name
  2. Check the secret exists in the same namespace as the Ingress (kubectl get secret app-tls) and has tls.crt and tls.key
  3. Check the hosts under tls match the rule host
  4. If using cert-manager, kubectl describe certificate and kubectl describe challenge
  5. Check controller logs for secret load errors

Why → The controller falls back to a self-signed default when it cannot find or parse the referenced secret or SNI host.

Interview tip → Mention that secrets must be in the Ingress namespace.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Ingress and DNS