kubectl, information about node from inside docker

11/9/2016

i am running ipyparallel in an kube cluster. I have several pods running on one node which is fine. But for my computation i want to help ipyparallel in loadbalancing by choosing pods evenly over all nodes. Is there a way to get this information from inside the pods/docker?

-- PlagTag
kubectl
kubernetes

1 Answer

11/9/2016

You could use a Kubernetes Service which does round-robin loadbalancing. If you need the IP addresses, you could do a DNS A- or SRV-Records lookup and get all IPs of all running instances: http://kubernetes.io/docs/admin/dns/

-- Daniel Sachse
Source: StackOverflow