Does each pod/container in a Kubernetes cluster has a different external ip?

7/18/2017

I created a cluster using Kubernetes and I want to make petitions to a server using different IP, does each of the nodes has a different one so that I can parallelize the requests? Thanks

-- Arturo Aviles
containers
distributed-computing
kubernetes
networking

1 Answer

7/18/2017

to make calls to your pods you should use kubernetes services which effectively loadbalance requests between your pods, so that you do not need to worry about particular IPs of PODs at all.

That said, each pod has it's unique IP address, but these are internal addresses, in most implementations they come from the overlay network and are, in a way, internal to kube cluster (can't be directly called from outside - which is not exactly the full truth, but close enough).

Depending on your goals, Ingress might be interesting for you.

https://kubernetes.io/docs/concepts/services-networking/service/ https://kubernetes.io/docs/concepts/services-networking/ingress/

-- Radek 'Goblin' Pieczonka
Source: StackOverflow