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

Provide example on how to bootstrap a self-managed cluster #1008

Closed

Conversation

anmazzotti
Copy link
Contributor

@anmazzotti anmazzotti commented Jan 16, 2025

What this PR does / why we need it:

This is a first attempt at providing a self-managed Rancher cluster.
The goal is to use a throwaway CAPI management cluster to provision a downstream Rancher cluster and pivot to it.

Unfortunately the move operation is currently not working.
clusterctl does not seem to recognize the providers installed by the cluster-api-operator and fails with:

> clusterctl move --to-kubeconfig=/tmp/cluster-api/rancher
Performing move...
Error: failed to check providers in target cluster: [provider infrastructure-docker not found in the target cluster, provider cluster-api not found in the target cluster, provider bootstrap-rke2 not found in the target cluster, provider control-plane-rke2 not found in the target cluster]

Note that the move operation succeeds when instead the downstream cluster is also initialized via clusterctl init, however this scenario is not suitable for us, as the requirement is to provision a Rancher Turtles ready environment instead.

The solution is to implement the clusteroperator move command.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #984

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@anmazzotti anmazzotti added the kind/documentation Improvements or additions to documentation label Jan 16, 2025
@anmazzotti anmazzotti force-pushed the self_managed_rancher_cluster branch from 40e3b06 to df56393 Compare January 16, 2025 16:43
@anmazzotti anmazzotti force-pushed the self_managed_rancher_cluster branch from df56393 to 7adace4 Compare January 20, 2025 09:08
@anmazzotti
Copy link
Contributor Author

Closing this pull request since the proof of concept has been translated to an ADR

@anmazzotti anmazzotti closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Improvements or additions to documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Self managed Rancher clusters
1 participant