Creating a Governing Headless Service

Learn how to create a governing headless Service.

We'll cover the following

When learning about headless Services, it can be useful to visualize a Service object with a head and a tail. The head is the stable IP exposed on the network, and the tail is the list of Pods it will send traffic to. Therefore, a headless Service is a Service object without a ClusterIP.

Example

The following YAML is the headless-svc.yml file and describes a headless Service, called dullahan, with no IP address (spec.clusterIP: None).

Get hands-on with 1200+ tech skills courses.