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.
More on Services, Networking, Ingress & Gateway API
What is a Kubernetes Service and why do we need one?BeginnerWhat are the Service types?BeginnerWhat is the difference between `port`, `targetPort` and `nodePort`?BeginnerHow does DNS work inside a cluster?BeginnerWhat is an Ingress?BeginnerWhat is the difference between Ingress and Service type LoadBalancer?Beginner