Interview Prep/Kubernetes/Services, Networking, Ingress & Gateway API

What is a headless Service and when do we use it?

BeginnerConceptServices, Networking, Ingress & Gateway API
Answer

A Service with clusterIP: None: no virtual IP, and DNS returns the individual Pod IPs (A records). StatefulSets use it to give each Pod a stable DNS name such as db-0.db.prod.svc. Clients that need to pick a specific replica (databases, Kafka brokers) use it.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Networking, Ingress & Gateway API