-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexandr Demicev <[email protected]>
- Loading branch information
1 parent
c42dfc8
commit c7d6768
Showing
28 changed files
with
82 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Examples | ||
|
||
This section contains examples of how to use the CAPRKE2 with different cloud providers and platforms. | ||
|
||
### Setting up the Management Cluster | ||
|
||
Make sure your set up a Management Cluster to use with Cluster API, you can follow instructions from the Cluster API [book](https://cluster-api.sigs.k8s.io/user/quick-start.html). |
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
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
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,30 @@ | ||
# Cluster API Docker Infrastructure Provider | ||
|
||
This page focuses on using the RKE2 provider with the Docker Infrastructure provider. | ||
|
||
## Setting up the Management Cluster | ||
|
||
Make sure your set up a Management Cluster to use with Cluster API, you can follow instructions from the Cluster API [book](https://cluster-api.sigs.k8s.io/user/quick-start.html). | ||
|
||
## Create a workload cluster | ||
|
||
Before creating a workload clusters, it is required to set the following environment variables: | ||
|
||
```bash | ||
export CONTROL_PLANE_MACHINE_COUNT=3 | ||
export WORKER_MACHINE_COUNT=1 | ||
export RKE2_VERSION=v1.30.2+rke2r1 | ||
export KIND_IMAGE_VERSION=v1.30.0 | ||
``` | ||
|
||
Now, we can generate the YAML files from the templates using `clusterctl generate yaml` command: | ||
|
||
```bash | ||
clusterctl generate cluster --from https://github.com/rancher/cluster-api-provider-rke2/blob/main/examples/docker/online-default/cluster-template.yaml -n example-docker rke2-docker > docker-rke2-clusterctl.yaml | ||
``` | ||
|
||
After examining the result YAML file, you can apply to the management cluster using: | ||
|
||
```bash | ||
kubectl apply -f docker-rke2-clusterctl.yaml | ||
``` |
File renamed without changes.
File renamed without changes.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.