Interview Prep/Networking/Kubernetes, Containers, MTU & Performance Basics

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.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes, Containers, MTU & Performance Basics