Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CAPI getting-started tutorial #643

Merged
merged 8 commits into from
Sep 3, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions docs/src/capi/tutorial/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ 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.
`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 canonical providers to configuration
evilnick marked this conversation as resolved.
Show resolved Hide resolved
file. Edit `~/.cluster-api/clusterctl.yaml` and add the following:

maci3jka marked this conversation as resolved.
Show resolved Hide resolved

```
mkdir -p ~/.config/cluster-api
curl -L https://raw.githubusercontent.com/canonical/cluster-api-k8s/main/clusterctl.yaml -o ~/.config/cluster-api/clusterctl.yaml
providers:
- name: ck8s
type: BootstrapProvider
url: "https://github.com/canonical/cluster-api-k8s/releases/latest/download/bootstrap-components.yaml"
- name: ck8s
type: ControlPlaneProvider
url: "https://github.com/canonical/cluster-api-k8s/releases/latest/download/control-plane-components.yaml"
type: "ControlPlaneProvider"
```

### Set up a management cluster
Expand Down Expand Up @@ -183,7 +191,7 @@ Set the respective environment variables by editing the rc file as needed
before sourcing it. Then generate the cluster manifest:

```
source ./templates/<infrastructure-provider>/template-variables.rc
source ./templates/<infrastructure-provider>/cluster-template.rc
maci3jka marked this conversation as resolved.
Show resolved Hide resolved
clusterctl generate cluster ${CLUSTER_NAME} --from ./templates/<infrastructure-provider>/cluster-template.yaml > cluster.yaml
```

Expand Down
Loading