kkpoon
kkpoon

Reputation: 1989

Kubernetes service externalIP

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

Upvotes: 0

Views: 633

Answers (2)

Janos Lenart
Janos Lenart

Reputation: 27070

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.

Upvotes: 3

Drew
Drew

Reputation: 751

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

Upvotes: 0

Related Questions