Consider the following stateful set:
Which has the following associated headless service:
From within a pod on the cluster, the DNS looks like this:
This is returning the IP’s of all three stateful set pods (this can be verified as below)
If I want to get the address of a single member of the stateful set: