What is a Headless Service in Kubernetes?
What is a Headless Service in Kubernetes? In Kubernetes, a Service is typically used to provide a stable IP address and DNS name for a set of Pods. By default, Kubernetes assigns a ClusterIP to the Service, and traffic is load balanced between available Pods. But sometimes you don’t want load balancing — you want direct DNS records for each Pod. That’s where a Headless Service comes in. How It Works A Headless Service is created by setting: ...