Via Helm install
In case you need to review the list of prerequisites (including |
If you want to manually apply the Helm chart and be in full control of the installation.
The Cluster API Operator is required for installing SUSE® Rancher Prime Cluster API and will be installed as dependency of the SUSE® Rancher Prime Cluster API Helm chart.
CAPI Operator allows handling the lifecycle of Cluster API Providers using a declarative approach, extending the capabilities of clusterctl
. If you want to learn more about it, you can refer to Cluster API Operator book.
Before installing SUSE® Rancher Prime Cluster API in your Rancher environment, Rancher’s To simplify setting up Rancher for installing SUSE® Rancher Prime Cluster API, the official SUSE® Rancher Prime Cluster API Helm chart includes a
|
If you would like to understand how SUSE® Rancher Prime Cluster API works and what the architecture looks like, you can refer to the Architecture section.
If uninstalling, you can refer to Uninstalling SUSE® Rancher Prime Cluster API |
Install SUSE® Rancher Prime Cluster API with Cluster API Operator
as a Helm dependency
The rancher-turtles
chart is available in https://rancher.github.io/turtles and this Helm repository must be added before proceeding with the installation:
helm repo add turtles https://rancher.github.io/turtles
helm repo update
As mentioned before, installing SUSE® Rancher Prime Cluster API requires the Cluster API Operator and the Helm chart can handle its installation automatically with a minimum set of flags:
helm install rancher-turtles turtles/rancher-turtles --version v0.13.0 \
-n rancher-turtles-system \
--dependency-update \
--create-namespace --wait \
--timeout 180s
This operation could take a few minutes and, after installing, you can take some time to study the installed controllers, including:
-
rancher-turtles-controller
. -
capi-operator
.
|
This is the basic, recommended configuration, which manages the creation of a secret containing the required CAPI feature flags (CLUSTER_TOPOLOGY
, EXP_CLUSTER_RESOURCE_SET
and EXP_MACHINE_POOL
enabled) in the core provider namespace. These feature flags are required to enable additional Cluster API functionality.
If you need to override the default behavior and use an existing secret (or add custom environment variables), you can pass the secret name helm flag. In this case, as a user, you are in charge of managing the secret creation and its content, including the minimum required features: CLUSTER_TOPOLOGY
, EXP_CLUSTER_RESOURCE_SET
and EXP_MACHINE_POOL
enabled.
helm install ...
# Passing secret name and namespace for additional environment variables
--set cluster-api-operator.cluster-api.configSecret.name=<secret_name>
The following is an example of a user-managed secret cluster-api-operator.cluster-api.configSecret.name=variables
with CLUSTER_TOPOLOGY
, EXP_CLUSTER_RESOURCE_SET
and EXP_MACHINE_POOL
feature flags set and an extra custom variable:
apiVersion: v1
kind: Secret
metadata:
name: variables
namespace: rancher-turtles-system
type: Opaque
stringData:
CLUSTER_TOPOLOGY: "true"
EXP_CLUSTER_RESOURCE_SET: "true"
EXP_MACHINE_POOL: "true"
CUSTOM_ENV_VAR: "false"
For detailed information on the values supported by the chart and their usage, refer to Helm chart options |