Kubernetes service externalIP

1/8/2017

I have a kubernetes cluster with

1.1.1.1 master 2.2.2.2 worker 3.3.3.3 worker

In a service. I specify externalIP: 2.2.2.2

Should the pod selected by the service locate in 2.2.2.2 or it could locate in other workers?

My kubernetes is not hosted on aws or gce. No LoadBalancer supported.

Thanks

-- kkpoon
kubernetes

2 Answers

2/7/2017

For external services, you should use a load balancer and specify the load balancer's DNS name - not a minion IP.

-- Drew
Source: StackOverflow

2/8/2017

It doesn't have run on that specific node. The traffic will be forwarded by kube-proxy to a pod selected by the service - regardless of where it's scheduled.

-- Janos Lenart
Source: StackOverflow