Can I setup a K8S cluster in VMs with different IP ranges?

6/13/2019

I managed to install a 3-node cluster on VMs within the same network. But is there a way to install a multi-node K8S cluster on VMs with different IP ranges? (VMs which are not located in the same network)

The reason for this question is the scenario that I have in mind:

I need to deploy a micro-service application (written in Java) with K8S. I made docker images from each service in my application and its working locally. I plan to have each service to be run in a separate physical location (within different networks) For this I need a multi-node cluster, but each node will get different IP range. Is this possible?

-- Maryam Tavakkoli
kubernetes
kubernetes-cluster

1 Answer

6/13/2019

if there is a connectivity among the three nodes then i dont see any reason why you cant setup multi node cluster.

note that kubernetes needs the machines to be closer. because lot of calls happen between api server, kubelet, kube-proxy. it would hit cluster and application performance.

-- P Ekambaram
Source: StackOverflow