Service versus Ingress: what is the difference?
BeginnerScenarioKubernetes Networking
Answer
Situation read → A Service is L4 load balancing inside the cluster; an Ingress is L7 HTTP routing at the edge.
What I'd do →
- A Service gives a stable IP and balances across pods
- An Ingress defines host and path rules routed to Services
- An Ingress needs a controller (ingress-nginx, AWS Load Balancer Controller, Traefik) to act
- Check with
kubectl get ingressandkubectl describe ingress app - TLS is configured in
spec.tls
Why → The Ingress object is only configuration; the controller is the actual proxy.
Interview tip → Mention Gateway API is the newer, more expressive successor.
More on Kubernetes Networking
Explain the Kubernetes networking model in one minute.BeginnerClusterIP, NodePort and LoadBalancer: when do you use each?BeginnerHow does a pod find another service by name?BeginnerWhat does a CNI plugin do and which ones do you know?BeginnerHow do you reach a pod from your laptop for debugging without exposing it?BeginnerBy default, can any pod talk to any other pod, and how do you change that?Beginner