Use Dns-based service discovery to find other Nodes.
config :peerage, via: Peerage.Via.Dns, dns_name: "localhost", app_name: "myapp"
Will look up the ip(s) for ‘localhost’, and then try to
Kubernetes supports this out of the box for ‘headless
services’ — if you have a service named
nslookup myapp in a deployed container will return a
list of IP addresses for that service.
More context and resources for using DNS for this:
Callback implementation for