-
Notifications
You must be signed in to change notification settings - Fork 131
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 support for creating cluster with a load balancer / fixed registration address #233
Comments
@Eric-Domeier - That functionality already exists: https://github.com/rancherfederal/rke2-ansible/blob/main/roles/rke2_server/tasks/other_servers.yml#L27 Will that accomplish what you are looking for? |
@aleiner Thanks for your reply. The kubernetes_api_server_host var appears to be set to the first server in the hosts file in server group
This does not achieve the HA setup described here: https://docs.rke2.io/install/ha my changes implement the ability to specify fixed_registration_address variable which should be a valid DNS/IP to a configured load balancer described in the above docs. When defined it will use the fixed_registration_address variable on all servers after the first server, and then change the first server to point to the load balancer once the additional control plane nodes are up and running. If the fixed_registration_address is not defined, it will continue to use the first server. |
I use this to setup KubeVIP as a loadbalancer for the control plane. |
Ahhh - that is a good point I did not think about. I will remove those changes |
Please test it to make sure it works for your use case. You might be doing something we haven't covered yet. |
@aleiner Sorry for the late reply. I tested with your suggestion of using the kubernetes_api_server_host var in group vars and it was successful, Will push an updated PR and will close this issue |
As described in RKE2 Docs
https://docs.rke2.io/install/ha
Add capability to create cluster with a fixed address
The text was updated successfully, but these errors were encountered: