-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85a31c3
commit 5c087a0
Showing
6 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# RKE2 | ||
## Specification | ||
| Control Plane | CNI | Default OS | Installs ClusterClass | | ||
|-----------------------------|--------|--------------|-----------------------| | ||
| [rke2](https://docs.rke2.io/) | Cilium | Ubuntu 22.04 | No | | ||
## Prerequisites | ||
* [Quickstart](../topics/getting-started.md) completed | ||
* Select an [rke2 kubernetes version](https://github.com/rancher/rke2/releases) to set for the kubernetes version | ||
```bash | ||
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 | ||
```yaml | ||
providers: | ||
- name: rke2 | ||
url: https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/v0.2.6/bootstrap-components.yaml | ||
type: BootstrapProvider | ||
- name: rke2 | ||
url: https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/v0.2.6/control-plane-components.yaml | ||
type: ControlPlaneProvider | ||
``` | ||
* Install the rke2 provider into your management cluster | ||
```shell | ||
clusterctl init --bootstrap rke2 --control-plane rke2 | ||
``` | ||
## Usage | ||
1. Generate cluster yaml | ||
```bash | ||
clusterctl generate cluster test-cluster --infrastructure linode:0.0.0 --flavor rke2 > test-rke2-cluster.yaml | ||
``` | ||
2. Apply cluster yaml | ||
```bash | ||
kubectl apply -f test-rke2-cluster.yaml | ||
``` |