Discovering cluster nodes in kubernetes across two namespaces


We want to migrate an akka-cluster service to a new kubernetes namespace. We’d like to achieve this without downtime, so our battle plan is to start a few pods in the new namespace that form a part of the cluster defined in the old namespace, then migrate the service clients to call the service in the new namespace before killing the deployment in the old one.

However, I don’t see any way in neither kuberenetes-api nor dns discovery to query for targets in more than one namespace. Is this even possible?

If that isn’t possible you could do manual or config based joining to the old cluster in other namespace. Then a sscond rolling update where you enable Akka Cluster Bootstrap again.