# Add multiple nodes from different datacenter

**URL:** <https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106>\
**Category:** SUSE Rancher Prime\
**Created:** [August 7, 2020, 12:39am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106 "2020-08-07T00:39:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![irwanazam](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/irwanazam/32/6300_2.png) [@irwanazam](https://forums.suse.com/u/irwanazam)\
**Post date:** [August 7, 2020, 12:39am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/1 "2020-08-07T00:39:25Z")

</div>

Hi guys,

Is it possible to add multiple nodes from different datacenter in one single cluster? I’m trying to add 2 nodes, one from DigitalOcean and another one from Google Cloud Provider but no success.

“E0806 16:31:26.513691 26316 kubelet\_node\_status.go:92] Unable to register node “master-node” with API server: Post [https://127.0.0.1:6443/api/v1/nodes:](https://127.0.0.1:6443/api/v1/nodes:) read tcp 127.0.0.1:46582-\>127.0.0.1:6443: read: connection reset by peer  
E0806 16:31:26.567081 26316 kubelet.go:2268] node “master-node” not found”

---

<div class="post-metadata">

**Author:** ![Jose\_Gato\_Luis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jose_gato_luis/32/6587_2.png) [@Jose\_Gato\_Luis](https://forums.suse.com/u/Jose_Gato_Luis)\
**Post date:** [August 11, 2020, 11:03am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/2 "2020-08-11T11:03:20Z")

</div>

seems similar to my issue [here](http://forums.suse.com/t/accessing-nodes-with-internal-ip/18110/2)

---

<div class="post-metadata">

**Author:** ![irwanazam](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/irwanazam/32/6300_2.png) [@irwanazam](https://forums.suse.com/u/irwanazam)\
**Post date:** [August 24, 2020, 6:18am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/3 "2020-08-24T06:18:29Z")

</div>

Hi @Jose_Gato_Luis, i think you can try to look into this project [submariner.io](http://submariner.io)

---

<div class="post-metadata">

**Author:** ![Jose\_Gato\_Luis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jose_gato_luis/32/6587_2.png) [@Jose\_Gato\_Luis](https://forums.suse.com/u/Jose_Gato_Luis)\
**Post date:** [September 24, 2020, 9:59am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/4 "2020-09-24T09:59:07Z")

</div>

sorry @irwanazam I didnt realized your answer. But this seems to help connecting two clusters. My problem, I have a single cluster, but one node does not reach the other ones. This is because that node is in my home, and the others on a baremetal server with different VMs.

---

<div class="post-metadata">

**Author:** ![irwanazam](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/irwanazam/32/6300_2.png) [@irwanazam](https://forums.suse.com/u/irwanazam)\
**Post date:** [September 28, 2020, 8:01am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/5 "2020-09-28T08:01:27Z")

</div>

@Jose_Gato_Luis interesting, I also wanted to know if this setup possible in rancher, Ping @superseb

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [September 29, 2020, 9:36am UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/6 "2020-09-29T09:36:28Z")

</div>

Networking requirements for clusters are described on [https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/node-requirements/#networking-requirements](https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/node-requirements/#networking-requirements). As long as you have the needed connectivity (either through public IPs or VPN or something else), you can make it work. Depending on the roles, it is probably not the best idea to mix etcd/controlplane nodes between datacenter due to latency. In case of a worker, this can work as long as it can reach the controlplane (which seems to fail in this case).

---

<div class="post-metadata">

**Author:** ![Jose\_Gato\_Luis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jose_gato_luis/32/6587_2.png) [@Jose\_Gato\_Luis](https://forums.suse.com/u/Jose_Gato_Luis)\
**Post date:** [November 16, 2020, 1:08pm UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/7 "2020-11-16T13:08:13Z")

</div>

Please, could you help me to find out why I am not reaching the controlplane? What could I test? I have look to the requirements several times, I have opened ports on my home’s router, added some forwards, etc. But always the same ☹ The node, which is a jetson nano in my house does not work correctly. This is correctly added, I can schedule some tasks there, etc. But I cannot for example find servierces in other nodes, or access the class storage (which is an nfs provider in other node).

---

<div class="post-metadata">

**Author:** ![Jelly\_Zhang](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jelly_zhang/32/7079_2.png) [@Jelly\_Zhang](https://forums.suse.com/u/Jelly_Zhang)\
**Post date:** [January 12, 2021, 5:48pm UTC](https://forums.suse.com/t/add-multiple-nodes-from-different-datacenter/18106/8 "2021-01-12T17:48:41Z")

</div>

For Anyone is seeing this, i have stuck in this problem for a long time, and finally found a solution.

1. create cluster with network provider `Calico`.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/6/695a1a9f3f65a19a1e464d50b6264f5c0a359f9f.png)
2. docker run … LONG COMMAND --address YOUR\_PUBLIC\_IP --internal-address YOUR\_PUBLIC\_IP

The key to success is Step1. Because this type of network is using ETCD to pass cluster information rather than overlay network.(FYI, [https://rancher.com/docs/rancher/v2.5/en/faq/networking/cni-providers/](https://rancher.com/docs/rancher/v2.x/en/faq/networking/cni-providers/))

I successfully put 2 azure VM from two different subscription and 1 Ali Yun (a chinese VM provider) into one cluster. (Although there shows 2 more nodes after AliYun VM get in and one of them is keep registering, I just deleted it and nothing goes wrong)

And I successful deploy some simple web service like traefik/whoami into 3 nodes.

I hope my solution will fix you problem.  
(I hope i could post more picture but new user can only put 1)
