What is the difference between a Service and an Ingress?
BeginnerConceptKubernetes, Containers, MTU & Performance Basics
Answer
A Service exposes a set of pods at L4. An Ingress is an L7 routing resource (host and path rules, TLS) implemented by an ingress controller such as nginx-ingress, Traefik or AWS Load Balancer Controller. The newer Gateway API supersedes Ingress with more expressive, role-oriented resources (GatewayClass, Gateway, HTTPRoute).
Ingress needs a controller running; creating the resource alone does nothing.
More on Kubernetes, Containers, MTU & Performance Basics
What are the basic Kubernetes networking rules?BeginnerWhat are the Service types in Kubernetes?BeginnerHow does kube-proxy implement Services?AdvancedHow does DNS work for Services and pods in Kubernetes?IntermediateWhat is a CNI plugin and how do the main ones differ?IntermediateWhat are the trade-offs of AWS VPC CNI?Advanced