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 →
kubectl describe ingressto see the TLS section and secret name- Check the secret exists in the same namespace as the Ingress (
kubectl get secret app-tls) and hastls.crtandtls.key - Check the
hostsundertlsmatch the rule host - If using cert-manager,
kubectl describe certificateandkubectl describe challenge - 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.
More on Services, Ingress and DNS
A Service has no endpoints. How do you find out why?BeginnerWhen do you use ClusterIP, NodePort, LoadBalancer and ExternalName?BeginnerTraffic to a Service works from some pods but times out from others. How do you debug it?AdvancedYou want to expose three HTTP services under one hostname with different paths. How?Intermediateingress-nginx returns 404 for a new host. What do you check?Intermediateingress-nginx returns 502 or 503 intermittently. What are the likely reasons?Intermediate