Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Join over private ip #4

Open
StarpTech opened this issue Mar 10, 2021 · 7 comments
Open

Join over private ip #4

StarpTech opened this issue Mar 10, 2021 · 7 comments

Comments

@StarpTech
Copy link

Hi, why is it necessary to pass the public IP of the master server?

@mysticaltech
Copy link

Indeed, ideally, the private IP should be used. Also, ideally, we would not have a network overlay with flannel. We can use cilium's native routing over the private network, as the Hetzner team does in their tests here https://github.com/hetznercloud/hcloud-cloud-controller-manager/tree/master/e2etests

@systemstart
Copy link

The values don't seem to know about the server IP, it can be fetched after spinning up: hcloud server describe ${SE_DOMAIN}-master | grep -A5 "Private Net:" | grep -o "[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+"

That not possible to feed back into provisioning?

How would the overlay fix the issue?

@mysticaltech
Copy link

@systemstart Not sure I understand your question to the fullest, but definitely the CCM's job should be to bring all of that info into the cluster if I'm not mistaken. You shouldn't need to fetch the IPs manually at all.

@systemstart
Copy link

The original question was, how to use the private network for Advertise/Join.

You suggested flannel or some Go source files as possible solutions for this.

Would you go a bit more into details?

@jceb
Copy link

jceb commented Feb 8, 2022

Fixed in multiple forks, e.g. identiops/terraform-hcloud-k3s@4edbb4a

@jceb
Copy link

jceb commented Feb 8, 2022

Indeed, ideally, the private IP should be used. Also, ideally, we would not have a network overlay with flannel. We can use cilium's native routing over the private network, as the Hetzner team does in their tests here https://github.com/hetznercloud/hcloud-cloud-controller-manager/tree/master/e2etests

@mysticaltech Not quite sure what you mean by that and how to use the native network. Can you point me to an example? I replaced flannel by calico, maybe this is already helpful to you: identiops/terraform-hcloud-k3s@e98776b

These pieces of documentation were most helpful:

Most of the configuration was already in place.

@mysticaltech
Copy link

Thanks, I've moved on too. I just make sure to configure the right interface to use by flannel, the eth1 with a Hetzner private network. It gives me what I needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants