DNS Discovery - Headless service
Is it possible to deploy a headless service ? (maybe only if REPLICAS > 1)
“Headless” (without a cluster IP) Services are also assigned a DNS A or AAAA record, depending on the IP family of the service, for a name of the form my-svc.my-namespace.svc.cluster-domain.example. Unlike normal Services, this resolves to the set of IPs of the pods selected by the Service. Clients are expected to consume the set or else use standard round-robin selection from the set. https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#a-aaaa-records
I need kube-dns to return pod ips so the pods can know each other to form a cluster (erlang/elixir).