Skip to content
Kubernetesintermediate45 minFree

Kubernetes Networking

Services, Ingress and network policy — how a packet actually reaches a pod.

Share

In short

Kubernetes networking rests on one rule: every pod gets its own IP and can reach every other pod without NAT. Everything above that — Services, Ingress, NetworkPolicy — exists because pod IPs are not stable and not exposed. Services give you a stable virtual IP and load balancing. Ingress puts an HTTP router in front of Services so many hostnames share one entry point. NetworkPolicy takes the default-allow flat network and narrows it down. Get those three roles clear and the failure modes stop being mysterious.

Contents

  1. 01ServicesClusterIP, NodePort and LoadBalancer, and what each one actually allocates.
  2. 02IngressHTTP routing in front of Services, and why the resource does nothing on its own.
  3. 03Network policiesNarrowing a default-allow flat network, and the traps in doing it.

Downloads

Service types cheat sheet PDF · 180 KB
NetworkPolicy recipe pack PDF · 640 KB
  • #networking
  • #services
  • #ingress
  • #cni