Skip to content

Commit

Permalink
Fix CAPI getting-started tutorial (#643)
Browse files Browse the repository at this point in the history
* 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 <nick.veitch@canonical.com>
  • Loading branch information
maci3jka and evilnick authored Sep 3, 2024
1 parent 0b5ccd7 commit c81f19b
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docs/src/capi/tutorial/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c81f19b

Please sign in to comment.