Skip to content

Commit

Permalink
CAPI docs: Remove manual provider config for clusterctl (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
HomayoonAlimohammadi authored Dec 17, 2024
1 parent 737e64f commit ed475d7
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions docs/src/capi/tutorial/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <infra-provider-of-choice>
clusterctl init --bootstrap canonical-kubernetes --control-plane canonical-kubernetes -i <infra-provider-of-choice>
```

## Generate a cluster spec manifest
Expand Down

0 comments on commit ed475d7

Please sign in to comment.