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

Separation between workers and servers for RKE2 clusters - Issue #121 #140

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

glovecchi0
Copy link

@glovecchi0 glovecchi0 commented Jun 7, 2024

Hi @leodotcloud, @dnoland1, @ajithijk,
This PR is a bit invasive, as it affects the RKE2 distro, which will cascade towards all the modules of the various providers that install RKE2.

The idea is to decouple the Server component from the Worker component, as done for K3s.

Resolves: #121

@glovecchi0 glovecchi0 added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed labels Jun 7, 2024
Copy link
Contributor

@dkeightley dkeightley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial review to add some thoughts, do we need to update (aws and vmware) recipes that use rke2 (and k3s I guess as well?)?

systemctl enable rke2-agent.service
systemctl start rke2-agent.service

cat > /var/lib/rancher/rke2/server/manifests/rke2-ingress-nginx-config.yaml << EOF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for a server, not needed here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@glovecchi0 Can we remove this HelmChartConfig in the worker template?

Comment on lines +82 to +86
# instance_disk_size = var.instance_disk_size
# disk_type = var.disk_type
# instance_type = var.instance_type
# os_image = var.os_image
# ssh_username = var.ssh_username
Copy link
Contributor

@dkeightley dkeightley Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we comment these out in the recipe for any reason? Preferably we'd avoid commented code and rely on safe defaults if we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation don't merge it enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[new feature] add the ability to decide how many controller nodes and how many worker nodes to create
2 participants