Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support node ports on fake kubelet endpoints #60

Open
FabianKramm opened this issue Jun 23, 2021 · 5 comments
Open

Support node ports on fake kubelet endpoints #60

FabianKramm opened this issue Jun 23, 2021 · 5 comments

Comments

@FabianKramm
Copy link
Member

FabianKramm commented Jun 23, 2021

Currently vcluster will exchange the node ip to redirect to traffic to itself (to rewrite cluster metrics). One problem with this is that those fake ips do not forward traffic in created node ports.

In order to implement this, we would need a controller that reconciles all virtual cluster node services and opens a new port on the vcluster that redirects traffic to the actual node ip.

@everflux
Copy link

I am not sure about the implications, but wouldn't it work to have the real node IPs in the fake node ip field or even the external-ip field?
I tested a LoadBalancer service inside a vcluster and using the real node ip instead of the ip from a fake node worked.

@everflux
Copy link

everflux commented May 3, 2023

Is there any option to set the external-ip of the virtual nodes to the internal ip of the real nodes?

@matskiv
Copy link
Contributor

matskiv commented May 17, 2023

@everflux There is no such option at the moment. But when you use "Real nodes" node syncing mode, the ExternalIP address of the host node should be visible in the .status.addresses field of the virtual node.

@everflux
Copy link

If someone else wonders how to configure the ExternalIP of bare metal nodes, see kubernetes/kubernetes#42125

@everflux
Copy link

everflux commented May 1, 2024

This seems to be working in vcluster 0.20.0-beta when syncing of all nodes is enabled.
I can see the correct (desired) internal host ip inside the vcluster.

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

No branches or pull requests

4 participants