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 rke2 flavor support #144

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Add rke2 flavor support #144

merged 2 commits into from
Feb 29, 2024

Conversation

AshleyDumaine
Copy link
Contributor

@AshleyDumaine AshleyDumaine commented Feb 27, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:
This PR adds template support for rke2 as a flavor when generating a cluster. it does require that the rke2 bootstrap/controlplane providers are already installed and also that you specify a rke2-specific k8s version:

$ k --kubeconfig kubeconfig-rke2.yaml get no
NAME                            STATUS   ROLES                       AGE     VERSION
test-rke2-control-plane-27jpc   Ready    control-plane,etcd,master   3m3s    v1.29.1+rke2r1
test-rke2-control-plane-hrpq6   Ready    control-plane,etcd,master   5m48s   v1.29.1+rke2r1
test-rke2-control-plane-t2m8g   Ready    control-plane,etcd,master   44s     v1.29.1+rke2r1
test-rke2-md-0-hvxhz            Ready    <none>                      5m35s   v1.29.1+rke2r1
test-rke2-md-0-wds2d            Ready    <none>                      5m35s   v1.29.1+rke2r1
$ clusterctl describe cluster test-rke2
NAME                                                       READY  SEVERITY  REASON  SINCE  MESSAGE
Cluster/test-rke2                                          True                     103s
├─ClusterInfrastructure - LinodeCluster/test-rke2          True                     7m38s
├─ControlPlane - RKE2ControlPlane/test-rke2-control-plane  True                     103s
│ └─3 Machines...                                          True                     3m57s  See test-rke2-control-plane-7rkf4, test-rke2-control-plane-mg6cj, ...
└─Workers
 └─MachineDeployment/test-rke2-md-0                       True                     4m32s
   └─2 Machines...                                        True                     6m28s  See test-rke2-md-0-88q7h-hkgsc, test-rke2-md-0-88q7h-hvqcn

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 #8

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@AshleyDumaine AshleyDumaine force-pushed the rke2-template branch 2 times, most recently from 4fe6025 to de37253 Compare February 28, 2024 19:39
@AshleyDumaine AshleyDumaine marked this pull request as ready for review February 28, 2024 19:40
@AshleyDumaine AshleyDumaine added feature New feature or request documentation Improvements or additions to documentation labels Feb 28, 2024
export KUBERNETES_VERSION=v1.29.1+rke2r1
```
* Installed [rke2 bootstrap provider](https://github.com/rancher-sandbox/cluster-api-provider-rke2) into your management cluster
* Add the following to `~/.cluster-api/clusterctl.yaml` for the k3s bootstrap/control plane providers
Copy link
Collaborator

Choose a reason for hiding this comment

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

it looks like the rke2 provider info is built into clusterctl, so I don't think this is necessary

@AshleyDumaine AshleyDumaine merged commit 0bd33cd into main Feb 29, 2024
6 checks passed
@AshleyDumaine AshleyDumaine deleted the rke2-template branch February 29, 2024 15:14
@AshleyDumaine AshleyDumaine added the rke2 Pull requests pertaining to the rke2 flavor label Feb 29, 2024
amold1 pushed a commit that referenced this pull request May 17, 2024
* add rke2 flavor

* add docs
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 feature New feature or request rke2 Pull requests pertaining to the rke2 flavor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate RKE2 Bootstrap Provider
2 participants