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

How to configure separate role for each nodes in multinode cluster #260

Open
yogeshghotekar opened this issue Oct 17, 2024 · 3 comments
Open

Comments

@yogeshghotekar
Copy link

yogeshghotekar commented Oct 17, 2024

I want to create 3 node cluster. Is there any way we can configure roles for the node in hosts.yml file?
1st node dedicated to etcd only
2nd node dedicated to controlplan only
3rd node dedicated to worker only

@Daemonslayer2048
Copy link
Contributor

Hey there, please try out the rewrite branch, it offers a lot more flexibility and is the direction we are going from now on. In the rewrite branch you can add the settings below to the hosts via host vars and you should get what you are looking for.

To set an ETCd only node:

host_rke2_config:
  disable-apiserver: true
  disable-controller-manager: true
  disable-scheduler: true

To set a control-plane only node:

host_rke2_config:
  server: https://<etcd-only-node>:9345
  disable-etcd: true

@Daemonslayer2048
Copy link
Contributor

I should note: What you are asking to do is not likely to be a good idea. If you plan on deploying only three nodes all three should be controlplane, etcd, and worker nodes. The setup you propose above has no HA for ETCd, controlplane, or workloads.

@yogeshghotekar
Copy link
Author

@Daemonslayer2048 Thanks for the update. I only gave example of 3 nodes but we have flexibility to use any number of nodes that to have different role combination.

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

No branches or pull requests

2 participants