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

Add built-in support for kube-vip #4976

Open
cl-rf opened this issue Nov 1, 2023 · 8 comments
Open

Add built-in support for kube-vip #4976

cl-rf opened this issue Nov 1, 2023 · 8 comments
Labels
kind/enhancement An improvement to existing functionality

Comments

@cl-rf
Copy link

cl-rf commented Nov 1, 2023

I would like for rke2 to support kube-vip natively during provisioning. There are ways to do this manually using the following gist:

https://gist.github.com/bgulla/7a6a72bdc5df6febb1e22dbc32f0ca4f

Ideally, there would be a an option in the config.yaml like "bind-vip-address=" where if this was set, the helm chart would be installed and configured. This would allow setting up a HA cluster without needing to setup external hardware/software load balancers and would just be highly available out of the box.

@brandond
Copy link
Member

brandond commented Nov 2, 2023

You can already enable k3s's ServiceLB if you need a basic load-balancer controller. I know that's not quite the same as what you'd get from kube-vip, but would it meet your needs?

@brandond
Copy link
Member

brandond commented Nov 2, 2023

Just to be clear, are you asking to have kube-vip or another LoadBalancer controller put in front of the RKE2 supervisor and apiserver to host a load-balanced virtual IP? Or do you just want a load-balancer controller available in your cluster?

@cl-rf
Copy link
Author

cl-rf commented Nov 6, 2023

I am asking for kube-vip or something similar to provide a built-in load balancer for the control nodes that does not require external resources. FIPS and STIG are the main factors for using rke2 vs k3s.

@brandond
Copy link
Member

brandond commented Nov 7, 2023

provide a built-in load balancer for the control nodes

Does this need to be a floating or load-balanced virtual IP, or are you referring to a Kubernetes LoadBalancer controller?

@cl-rf
Copy link
Author

cl-rf commented Nov 13, 2023

Floating IP. It is more for HA than balancing the traffic between the control nodes.

@caroline-suse-rancher caroline-suse-rancher added the kind/enhancement An improvement to existing functionality label Dec 12, 2023
@snivou
Copy link

snivou commented Dec 13, 2023

This can also solve the problem of downstream rke2 load balancing

rancher/rancher#39021 (comment)

@flrichar
Copy link

The use-case for kube-vip is somewhat limited to onpremises (ie non-cloud native) environments. I use it myself and like it, however there's no recent helm chart, each manifest is unique and dependent on the environment. I can see this as a hurdle to adoption.

@danieljkemp
Copy link

I've been running a manually deployed kube-vip setup to provide a VIP for the apiserver via static pods (was using round-robin dns previously). Most (every) times the control plane server restarts the kube-vip pod isn't started properly, and a crictl on the node shows it as exited. Deleteing the dead pod and restarting rke2 fixes things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement An improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

6 participants