From ed475d7f37ba8eeb40a090852aa8368ccac12d0a Mon Sep 17 00:00:00 2001 From: Homayoon Alimohammadi Date: Wed, 18 Dec 2024 01:04:52 +0400 Subject: [PATCH] CAPI docs: Remove manual provider config for clusterctl (#911) --- docs/src/capi/tutorial/getting-started.md | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/docs/src/capi/tutorial/getting-started.md b/docs/src/capi/tutorial/getting-started.md index 0bd0fe071..62e3ab619 100644 --- a/docs/src/capi/tutorial/getting-started.md +++ b/docs/src/capi/tutorial/getting-started.md @@ -12,27 +12,10 @@ placing it in your PATH. For example, at the time this guide was written, for `amd64` you would run: ``` -curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.7.3/clusterctl-linux-amd64 -o clusterctl +curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.9.0/clusterctl-linux-amd64 -o clusterctl sudo install -o root -g root -m 0755 clusterctl /usr/local/bin/clusterctl ``` -## Configure `clusterctl` - -`clusterctl` contains a list of default providers. Right now, {{product}} is -not yet part of that list. To make `clusterctl` aware of the new -providers we need to add them to the configuration -file. Edit `~/.cluster-api/clusterctl.yaml` and add the following: - -``` -providers: - - name: ck8s - type: BootstrapProvider - url: "https://github.com/canonical/cluster-api-k8s/releases/latest/bootstrap-components.yaml" - - name: ck8s - type: ControlPlaneProvider - url: "https://github.com/canonical/cluster-api-k8s/releases/latest/control-plane-components.yaml" -``` - ## Set up a management cluster The management cluster hosts the CAPI providers. You can use {{product}} as a @@ -163,7 +146,7 @@ To initialise the management cluster with the latest released version of the providers and the infrastructure of your choice: ``` -clusterctl init --bootstrap ck8s --control-plane ck8s -i +clusterctl init --bootstrap canonical-kubernetes --control-plane canonical-kubernetes -i ``` ## Generate a cluster spec manifest