As a next step, you need to switch to the workload cluster and the below command will do it:
To move the Cluster API objects from your bootstrap cluster to the new management cluster, firstly you need to install the Cluster API controllers. To install the components with the latest version, run the below command:
For a specific version, use the flag --infrastructure hetzner:vX.X.X
with the above command.
You can switch back to the management cluster with the following command:
Move the objects into the new cluster by using:
Clusterctl Flags:
Flag | Description |
---|---|
--namespace | The namespace where the workload cluster is hosted. If unspecified, the current context's namespace is used. |
--kubeconfig | Path to the kubeconfig file for the source management cluster. If unspecified, default discovery rules apply. |
--kubeconfig-context | Context to be used within the kubeconfig file for the source management cluster. If empty, the current context will be used. |
--to-kubeconfig | Path to the kubeconfig file to use for the destination management cluster. |
--to-kubeconfig-context | Context to be used within the kubeconfig file for the destination management cluster. If empty, the current context will be used. |