This project contains rke2 cluster template helm chart, which can be applied with values.yaml as configurations to create clusters.
helm repo add cluster-templates https://raw.githubusercontent.com/rancher/cluster-template-examples/main
helm repo update
- Authenticate into the Rancher Manager UI.
- Open
local
cluster in Cluster Explorer. - In the left sidebar, go to Apps -> Charts -> Repositories.
- Click Create and provide the following details:
Name: cluster-templates
Target: Git Repository containing Helm chart definitions
Git Repo URL: https://github.com/rancher/cluster-template-examples
Authentication: None
The general cluster configuration options are available through values.yaml.
To provide your own configuration, modify the original values.yaml and create your own version, and pass it to helm. For example:
helm install --namespace fleet-default --values ./charts/your-own-values.yaml do-cluster ./charts
For different cloud provider options on nodepools, checkout
The version control is implemented as helm release history and can easily be implemented by UI to provide operation history and rollback.
Copyright (c) 2014-2021 Rancher Labs, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.