From c81f19bf07119f18799403e2b2d6cbcd97d8012c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciek=20Go=C5=82aszewski?= Date: Tue, 3 Sep 2024 20:02:07 +0200 Subject: [PATCH] Fix CAPI getting-started tutorial (#643) * Update capi/tutorial/getting-started.md fixed path for environment variable path for MAAS * Changed way of adding cluster-api providers KU-1468 * lint fix * Update docs/src/capi/tutorial/getting-started.md * Update docs/src/capi/tutorial/getting-started.md * urls fix * Update docs/src/capi/tutorial/getting-started.md --------- Co-authored-by: Nick Veitch --- docs/src/capi/tutorial/getting-started.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/src/capi/tutorial/getting-started.md b/docs/src/capi/tutorial/getting-started.md index 892f9a0e2..08302fb53 100644 --- a/docs/src/capi/tutorial/getting-started.md +++ b/docs/src/capi/tutorial/getting-started.md @@ -18,13 +18,20 @@ 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 part of that list. To make `clusterctl` aware of the new -providers, we need to add a clusterctl configuration file. - -``` -mkdir -p ~/.config/cluster-api -curl -L https://raw.githubusercontent.com/canonical/cluster-api-k8s/main/clusterctl.yaml -o ~/.config/cluster-api/clusterctl.yaml +`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" + type: "ControlPlaneProvider" ``` ### Set up a management cluster