Headless service
A headless Service is a Kubernetes Service without a cluster IP that exposes its backing pod addresses directly through DNS.
Kubernetes in Action, Second Edition
A headless Service is a Kubernetes Service configured to expose the addresses of its backing pods directly through DNS instead of providing a single virtual IP address.
- How it is used
- Enables clients and peer pods to discover backing pods directly rather than connect through one Service IP.
- How deep it goes
- Works through manifest settings, DNS lookup comparisons, and pod-level naming for StatefulSets and Indexed Jobs.
- Examples
- Uses a quote-pod DNS lookup, MongoDB replica connection strings, and a peer-to-peer Indexed Job.
- What you can do after
- Operate/configure it with `clusterIP: None`, verify pod addresses through DNS, and configure individual pod discovery where needed.
Read how Kubernetes in Action, Second Edition explains headless service →
Acing the Certified Kubernetes Administrator Exam, Second Edition
A headless service is a Kubernetes Service configured without a cluster IP so DNS can return the addresses of its backing pods directly.
- How it is used
- Routes DNS lookups directly to backing Pod addresses when clients need to discover and select individual replicas.
- How deep it goes
- Explains the clusterIP: None setting, DNS behavior, database rationale, YAML configuration, and kubectl verification.
- Examples
- Uses a multiport internal-svc with ports 8080 and 9200, plus database replicas with separate write and read roles.
- What you can do after
- Operate/configure a headless Service with YAML, create it using kubectl, and verify its absent cluster IP.
Related concepts
- servicekind of · A Kubernetes Service is an API resource that provides stable network access and service discovery for a changing set of Pods or other specified destinations.
- domain name systemproduces · The Domain Name System is a distributed, hierarchical naming system that resolves domain names to IP addresses and other network resource records.
- DNS recordproduces · A DNS record is a structured Domain Name System entry associating a domain name with information such as an address, service target, or administrative value.
- A recordproduces · An A record is a DNS resource record that maps a domain name or hostname to an IPv4 address.
- clusterip service typeconfigured by · ClusterIP is a Kubernetes Service type that exposes selected Pods through a stable virtual IP address accessible only within the cluster.
- DNS serveruses · A DNS server is a network service that answers domain-name queries by returning corresponding DNS records or obtaining them from other DNS servers.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

