Configure a Kubernetes Service with clusterIP: None to remove its virtual cluster IP. DNS then returns the internal addresses of all selected Pods, allowing clients to communicate with Pods directly. section 6.4.1
Configure and verify a headless Service
Add clusterIP: None beneath spec in the Service YAML, then run kubectl create -f svc.yaml. Verify the result with kubectl get svc: the Service shows CLUSTER-IP None while retaining its configured ports, such as 8080/TCP and 9200/TCP. section 6.4.1
Use direct Pod addressing when clients must distinguish replicas, such as a database cluster with one writable copy and read-only copies. StatefulSets create a headless Service automatically. section 6.4.1

