Skip to content

Commit 44b82f7

Browse files
update and cleanup of book docs (#1194)
Signed-off-by: Prajyot-Parab <[email protected]>
1 parent daf4248 commit 44b82f7

File tree

15 files changed

+168
-102
lines changed

15 files changed

+168
-102
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ The [Cluster API](https://github.com/kubernetes-sigs/cluster-api) brings declara
1818

1919
Please see our [book](https://cluster-api-ibmcloud.sigs.k8s.io) for in-depth documentation.
2020

21-
## Launching a Kubernetes cluster on IBMCloud
21+
## Launching a Kubernetes cluster on IBM Cloud
2222

23-
Check out the [Cluster API IBMCloud Quick Start](https://cluster-api-ibmcloud.sigs.k8s.io/getting-started.html) for launching a
24-
cluster on IBMCloud.
23+
Check out the [Cluster API IBM Cloud Quick Start](https://cluster-api-ibmcloud.sigs.k8s.io/getting-started.html) for launching a
24+
cluster on IBM Cloud.
2525

2626
## Compatibility with Cluster API and Kubernetes Versions
2727

docs/book/book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[book]
2-
authors = ["The Cluster API Provider IBMCloud Maintainers"]
2+
authors = ["The Cluster API Provider IBM Cloud Maintainers"]
33
language = "en"
44
multilingual = false
55
src = "src"
6-
title = "Kubernetes Cluster API Provider IBMCloud"
6+
title = "Kubernetes Cluster API Provider IBM Cloud"
77

88
[output.html]
99
curly-quotes = true

docs/book/src/SUMMARY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
- [Getting Started](./getting-started.md)
55
- [Images](./machine-images/index.md)
66
- [VPC](./machine-images/vpc.md)
7-
- [Power VS](./machine-images/powervs.md)
7+
- [PowerVS](./machine-images/powervs.md)
88
- [Topics](./topics/index.md)
99
- [VPC Cluster](./topics/vpc/index.md)
1010
- [Prerequisites](./topics/vpc/prerequisites.md)
1111
- [Uploading an image](topics/vpc/uploading-an-image.md)
1212
- [Creating a cluster](./topics/vpc/creating-a-cluster.md)
1313
- [Creating a cluster with Load Balancer and External Cloud Provider](./topics/vpc/load-balancer.md)
14-
- [Power VS Cluster](./topics/powervs/index.md)
14+
- [PowerVS Cluster](./topics/powervs/index.md)
1515
- [Prerequisites](./topics/powervs/prerequisites.md)
1616
- [Creating a cluster](./topics/powervs/creating-a-cluster.md)
1717
- [Creating a cluster with External Cloud Provider](./topics/powervs/external-cloud-provider.md)
1818
- [Creating a cluster from ClusterClass](./topics/powervs/clusterclass-cluster.md)
1919
- [Using autoscaler with scaling from 0 machine](./topics/powervs/autoscaler-scalling-from-0.md)
2020
- [capibmadm CLI](./topics/capibmadm/index.md)
21-
- [Power VS Commands](./topics/capibmadm/powervs/index.md)
21+
- [PowerVS Commands](./topics/capibmadm/powervs/index.md)
2222
- [Image Commands](./topics/capibmadm/powervs/image.md)
2323
- [Network Commands](./topics/capibmadm/powervs/network.md)
2424
- [Port Commands](./topics/capibmadm/powervs/port.md)

docs/book/src/developer/tilt.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ kustomize_substitutions:
4747
IBMCLOUD_API_KEY: "XXXXXXXXXXXXXXXXXX"
4848
```
4949
50-
Add following extra_args to log Power VS REST API Requests/Responses
50+
Add following extra_args to log PowerVS REST API Requests/Responses
5151
5252
```yaml
5353
extra_args:
5454
ibmcloud:
5555
- '-v=5'
5656
```
5757
58-
### 1. Configuration to deploy Power VS workload cluster with external cloud controller manager
58+
### 1. Configuration to deploy PowerVS workload cluster with external cloud controller manager
5959
60-
To deploy workload cluster with [Power VS cloud controller manager](/topics/powervs/external-cloud-provider.html) which is currently in experimental stage, Set `POWERVS_PROVIDER_ID_FORMAT` to `v2` and enable cluster resourceset feature gate under kustomize_substitutions.
60+
To deploy workload cluster with [PowerVS cloud controller manager](/topics/powervs/external-cloud-provider.html) which is currently in experimental stage, Set `POWERVS_PROVIDER_ID_FORMAT` to `v2` and enable cluster resourceset feature gate under kustomize_substitutions.
6161
Currently, [ClusterResourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) is experimental feature so we need to enable the feature gate by setting `EXP_CLUSTER_RESOURCE_SET` variable under kustomize_substitutions.
6262

6363
```yaml

docs/book/src/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ it into a management cluster using `clusterctl`.
5555
export EXP_CLUSTER_RESOURCE_SET=true
5656
```
5757

58-
> Note: To deploy workload cluster with [Power VS cloud controller manager](/topics/powervs/external-cloud-provider.html) which is currently in experimental stage. Set the `POWERVS_PROVIDER_ID_FORMAT` environmental variable.
58+
> Note: To deploy workload cluster with [PowerVS cloud controller manager](/topics/powervs/external-cloud-provider.html) which is currently in experimental stage. Set the `POWERVS_PROVIDER_ID_FORMAT` environmental variable.
5959
Currently, [ClusterResourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) is experimental feature so we need to enable the feature gate by setting `EXP_CLUSTER_RESOURCE_SET` environmental variables.
6060
```console
6161
export POWERVS_PROVIDER_ID_FORMAT=v2
6262
export EXP_CLUSTER_RESOURCE_SET=true
6363
```
64-
> Note: To deploy workload cluster with [Power VS clusterclass-template](/topics/powervs/clusterclass-cluster.html). Set the `POWERVS_PROVIDER_ID_FORMAT` environmental variable.
64+
> Note: To deploy workload cluster with [PowerVS clusterclass-template](/topics/powervs/clusterclass-cluster.html). Set the `POWERVS_PROVIDER_ID_FORMAT` environmental variable.
6565
Currently, both [ClusterClass](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/index.html) and [ClusterResourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) are experimental feature so we need to enable the feature gate by setting `EXP_CLUSTER_RESOURCE_SET`, `CLUSTER_TOPOLOGY` environmental variables.
6666
```console
6767
export POWERVS_PROVIDER_ID_FORMAT=v2

docs/book/src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This repository uses the Kubernetes bots. See a full list of the commands [here
5858

5959
### Join us
6060

61-
The community holds a weekly meeting every Friday at 09:00 (IST) / 03:30 (UTC) on [Zoom](https://zoom.us/j/9392903494). Subscribe to the [SIG Cluster Lifecycle](https://groups.google.com/g/kubernetes-sig-cluster-lifecycle) Google Group for access to documents and calendars
61+
The community holds a bi-weekly meeting every Friday at 09:00 (IST) / 03:30 (UTC) on [Zoom](https://zoom.us/j/9392903494). Subscribe to the [SIG Cluster Lifecycle](https://groups.google.com/g/kubernetes-sig-cluster-lifecycle) Google Group for access to documents and calendars
6262

6363

6464
### Other ways to communicate with the contributors

docs/book/src/topics/capibmadm/index.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,84 @@
22

33
Kubernetes Cluster API Provider IBM Cloud Management Utility
44

5-
## [1. Power VS commands](./powervs/index.md)
5+
## Install capibmadm
6+
7+
#### Install capibmadm binary with curl on Linux
8+
If you are unsure you can determine your computers architecture by running `uname -a`
9+
10+
Download for AMD64:
11+
```bash
12+
curl -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-linux-amd64 -o capibmadm
13+
```
14+
15+
Download for ARM64:
16+
```bash
17+
curl -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-linux-arm64 -o capibmadm
18+
```
19+
20+
Download for PPC64LE:
21+
```bash
22+
curl -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-linux-ppc64le -o capibmadm
23+
```
24+
25+
Make the capibmadm binary executable.
26+
```bash
27+
chmod +x ./capibmadm
28+
```
29+
Move the binary in to your PATH.
30+
```bash
31+
sudo mv ./capibmadm /usr/local/bin/capibmadm
32+
```
33+
Test to ensure the version you installed is up-to-date:
34+
```bash
35+
capibmadm version -o short
36+
```
37+
38+
#### Install capibmadm binary with curl on macOS
39+
If you are unsure you can determine your computers architecture by running `uname -a`
40+
41+
Download for AMD64:
42+
```bash
43+
curl -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-darwin-amd64 -o capibmadm
44+
```
45+
46+
Download for M1 CPU ("Apple Silicon") / ARM64:
47+
```bash
48+
curl -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-darwin-arm64 -o capibmadm
49+
```
50+
51+
Make the capibmadm binary executable.
52+
```bash
53+
chmod +x ./capibmadm
54+
```
55+
Move the binary in to your PATH.
56+
```bash
57+
sudo mv ./capibmadm /usr/local/bin/capibmadm
58+
```
59+
Test to ensure the version you installed is up-to-date:
60+
```bash
61+
capibmadm version -o short
62+
```
63+
64+
#### Install capibmadm binary with curl on Windows using PowerShell
65+
Go to the working directory where you want capibmadm downloaded.
66+
67+
Download the latest release on AMD64; on Windows, type:
68+
```powershell
69+
curl.exe -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-windows-amd64.exe -o capibmadm.exe
70+
```
71+
Append or prepend the path of that directory to the `PATH` environment variable.
72+
73+
Download the latest release on ARM64; on Windows, type:
74+
```powershell
75+
curl.exe -L https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/releases/download/v0.5.0-alpha.1/capibmadm-windows-arm64.exe -o capibmadm.exe
76+
```
77+
Append or prepend the path of that directory to the `PATH` environment variable.
78+
79+
Test to ensure the version you installed is up-to-date:
80+
```powershell
81+
capibmadm.exe version -o short
82+
```
83+
84+
## [1. PowerVS commands](./powervs/index.md)
685
## [2. VPC commands](./vpc/index.md)

docs/book/src/topics/capibmadm/powervs/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
- [delete](/topics/capibmadm/powervs/port.html#2-capibmadm-powervs-port-delete)
1616
- [list](/topics/capibmadm/powervs/port.html#3-capibmadm-powervs-port-list)
1717
- [image](./image.md)
18-
- [list] (/topics/capibmadm/powervs/image.html#1-capibmadm-powervs-image-list))
19-
18+
- [list](/topics/capibmadm/powervs/image.html#1-capibmadm-powervs-image-list)

docs/book/src/topics/powervs/clusterclass-cluster.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Create IBM Power VS Cluster Using ClusterClass
1+
# Create IBM PowerVS Cluster Using ClusterClass
22
## Steps
33

4-
- To deploy Power VS workload cluster using [ClusterClass](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/index.html), create a cluster configuration from the [clusterclass-template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-simple-powervs-clusterclass.yaml)
5-
- The Power VS cluster will use [external cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/). As a prerequisite set the `powervs-provider-id-fmt` [flag](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/64c9e1d17f1733c721f45a559edba3f4b712bcb0/main.go#L220) with value v2
4+
- To deploy PowerVS workload cluster using [ClusterClass](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/index.html), create a cluster configuration from the [clusterclass-template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-simple-powervs-clusterclass.yaml)
5+
- The PowerVS cluster will use [external cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/). As a prerequisite set the `powervs-provider-id-fmt` [flag](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/64c9e1d17f1733c721f45a559edba3f4b712bcb0/main.go#L220) with value v2
66
- The [clusterclass-template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-simple-powervs-clusterclass.yaml) will use [clusterresourceset](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-resource-set.html) and will create the necessary config map, secret and roles to run the cloud controller manager
77

8-
### Deploy Power VS cluster with IBM Power VS cloud provider
8+
### Deploy PowerVS cluster with IBM PowerVS cloud provider
99

1010
```
1111
IBMPOWERVS_CLUSTER_CLASS_NAME="powervs-cc" \
1212
IBMPOWERVS_SSHKEY_NAME="my-pub-key" \
13-
IBMPOWERVS_VIP="192.168.151.22" \
14-
IBMPOWERVS_VIP_EXTERNAL="158.175.162.22" \
13+
IBMPOWERVS_VIP="192.168.167.6" \
14+
IBMPOWERVS_VIP_EXTERNAL="163.68.65.6" \
1515
IBMPOWERVS_VIP_CIDR="29" \
16-
IBMPOWERVS_IMAGE_NAME="capibm-powervs-centos-8-1-22-4" \
17-
IBMPOWERVS_SERVICE_INSTANCE_ID="7845d372-d4e1-46b8-91fc-41051c984601" \
18-
IBMPOWERVS_NETWORK_NAME="capi-test-3" \
16+
IBMPOWERVS_IMAGE_NAME="capibm-powervs-centos-streams8-1-26-2" \
17+
IBMPOWERVS_SERVICE_INSTANCE_ID="3229a94c-af54-4212-bf60-6202b6fd0a07" \
18+
IBMPOWERVS_NETWORK_NAME="capi-test" \
1919
IBMACCOUNT_ID="ibm-accountid" \
20-
IBMPOWERVS_REGION="powervs-region" \
21-
IBMPOWERVS_ZONE="powervs-zone" \
20+
IBMPOWERVS_REGION="osa" \
21+
IBMPOWERVS_ZONE="osa21" \
2222
BASE64_API_KEY=$(echo -n $IBMCLOUD_API_KEY | base64) \
23-
clusterctl generate cluster ibm-powervs-1 --kubernetes-version v1.22.4 \
23+
clusterctl generate cluster ibm-powervs-1 --kubernetes-version v1.26.2 \
2424
--target-namespace default \
2525
--control-plane-machine-count=3 \
2626
--worker-machine-count=1 \

docs/book/src/topics/powervs/creating-a-cluster.md

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,44 @@ following the steps below.
66
1. Create PowerVS network port
77

88
```console
9-
~ pvsadm create port --description "capi-port" --network <NETWORK_NAME> --instance-id <SERVICE_INSTANCE_ID>
9+
~ export IBMCLOUD_API_KEY=<API_KEY>
10+
~ capibmadm powervs port create --network capi-test --description capi-test-port --service-instance-id 3229a94c-af54-4212-bf60-6202b6fd0a07 --zone osa21
1011
```
1112

1213
Output:
1314
```console
14-
I1125 15:24:20.581757 1548881 port.go:89] Successfully created a port, id: ac18ef17-8517-40e3-889d-4f246e9bd17e
15-
+---------------------+------------+------+-----------------+-------------------+--------------------------------------+-------------+--------+
16-
| DESCRIPTION | EXTERNALIP | HREF | IPADDRESS | MACADDRESS | PORTID | PVMINSTANCE | STATUS |
17-
+---------------------+------------+------+-----------------+-------------------+--------------------------------------+-------------+--------+
18-
| capi-port | | | 192.168.151.125 | fa:16:3e:34:2c:ef | 7eff02b5-040c-4934-957a-18209e65eca4 | | DOWN |
19-
+---------------------+------------+------+-----------------+-------------------+--------------------------------------+-------------+--------+
15+
Creating Port Network ID/Name="capi-test" IP Address="" Description="capi-test-port" service-instance-id="3229a94c-af54-4212-bf60-6202b6fd0a07" zone="osa21"
16+
Successfully created a port portID="c7e7b6e0-0b0d-4a11-a90b-6ea293deb5ac"
17+
DESCRIPTION EXTERNAL IP IP ADDRESS MAC ADDRESS PORT ID STATUS
18+
capi-test-port 192.168.167.6 fa:16:3e:89:c8:80 c7e7b6e0-0b0d-4a11-a90b-6ea293deb5ac DOWN
2019
```
2120

2221
```console
23-
~ pvsadm get ports --instance-id <SERVICE_INSTANCE_ID> --network <NETWORK_NAME>
22+
~ capibmadm powervs port list --network capi-test --service-instance-id 3229a94c-af54-4212-bf60-6202b6fd0a07 --zone osa21
2423
```
2524

2625
Output:
2726
```console
28-
+-------------------+-----------------+-----------------+-------------------+--------------------------------------+--------+
29-
| DESCRIPTION | EXTERNALIP | IPADDRESS | MACADDRESS | PORTID | STATUS |
30-
+-------------------+-----------------+-----------------+-------------------+--------------------------------------+--------+
31-
| capi-port | 158.175.162.125 | 192.168.151.125 | fa:16:3e:34:2c:ef | 7eff02b5-040c-4934-957a-18209e65eca4 | DOWN |
32-
+-------------------+-----------------+-----------------+-------------------+--------------------------------------+--------+
27+
Listing PowerVS ports service-instance-id="3229a94c-af54-4212-bf60-6202b6fd0a07" network="capi-test"
28+
DESCRIPTION EXTERNAL IP IP ADDRESS MAC ADDRESS PORT ID STATUS
29+
capi-test-port 163.68.65.6 192.168.167.6 fa:16:3e:89:c8:80 c7e7b6e0-0b0d-4a11-a90b-6ea293deb5ac DOWN
3330
```
3431

3532
2. Use clusterctl to render the yaml through templates and deploy the cluster
3633

37-
**Note:** To deploy workload cluster with Power VS cloud controller manager which is currently in experimental stage follow [these](/topics/powervs/external-cloud-provider.html) steps.
34+
**Note:** To deploy workload cluster with PowerVS cloud controller manager which is currently in experimental stage follow [these](/topics/powervs/external-cloud-provider.html) steps.
3835

3936
**Note:** the `IBMPOWERVS_IMAGE_ID` value below should reflect the ID of the custom qcow2 image, the `kubernetes-version` value below should reflect the kubernetes version of the custom qcow2 image.
4037

4138
```console
4239
IBMPOWERVS_SSHKEY_NAME="my-pub-key" \
43-
IBMPOWERVS_VIP="192.168.151.22" \
44-
IBMPOWERVS_VIP_EXTERNAL="158.175.162.22" \
40+
IBMPOWERVS_VIP="192.168.167.6" \
41+
IBMPOWERVS_VIP_EXTERNAL="163.68.65.6" \
4542
IBMPOWERVS_VIP_CIDR="29" \
46-
IBMPOWERVS_IMAGE_NAME="capibm-powervs-centos-8-1-22-4" \
47-
IBMPOWERVS_SERVICE_INSTANCE_ID="7845d372-d4e1-46b8-91fc-41051c984601" \
48-
IBMPOWERVS_NETWORK_NAME="capi-test-3" \
49-
clusterctl generate cluster ibm-powervs-1 --kubernetes-version v1.22.4 \
43+
IBMPOWERVS_IMAGE_NAME="capibm-powervs-centos-streams8-1-26-2" \
44+
IBMPOWERVS_SERVICE_INSTANCE_ID="3229a94c-af54-4212-bf60-6202b6fd0a07" \
45+
IBMPOWERVS_NETWORK_NAME="capi-test" \
46+
clusterctl generate cluster ibm-powervs-1 --kubernetes-version v1.26.2 \
5047
--target-namespace default \
5148
--control-plane-machine-count=3 \
5249
--worker-machine-count=1 \
@@ -93,15 +90,15 @@ following the steps below.
9390
```console
9491
~ kubectl get kubeadmcontrolplane
9592
NAME INITIALIZED API SERVER AVAILABLE VERSION REPLICAS READY UPDATED UNAVAILABLE
96-
ibm-powervs-1-control-plane true true v1.22.4 1 1 1
93+
ibm-powervs-1-control-plane true true v1.26.2 1 1 1
9794
```
9895

9996
Machines
10097
```console
10198
~ kubectl get machines
102-
ibm-powervs-1-control-plane-vzz47 ibmpowervs://ibm-powervs-1/ibm-powervs-1-control-plane-rg6xv Running v1.22.4
103-
ibm-powervs-1-md-0-5444cfcbcd-6gg5z ibmpowervs://ibm-powervs-1/ibm-powervs-1-md-0-dbxb7 Running v1.22.4
104-
ibm-powervs-1-md-0-5444cfcbcd-7kr9x ibmpowervs://ibm-powervs-1/ibm-powervs-1-md-0-k7blr Running v1.22.4
99+
ibm-powervs-1-control-plane-vzz47 ibmpowervs://ibm-powervs-1/ibm-powervs-1-control-plane-rg6xv Running v1.26.2
100+
ibm-powervs-1-md-0-5444cfcbcd-6gg5z ibmpowervs://ibm-powervs-1/ibm-powervs-1-md-0-dbxb7 Running v1.26.2
101+
ibm-powervs-1-md-0-5444cfcbcd-7kr9x ibmpowervs://ibm-powervs-1/ibm-powervs-1-md-0-k7blr Running v1.26.2
105102
```
106103

107104
4. Deploy Container Network Interface (CNI)
@@ -118,7 +115,7 @@ following the steps below.
118115
```console
119116
~ kubectl get nodes
120117
NAME STATUS ROLES AGE VERSION
121-
ibm-powervs-1-control-plane-rg6xv Ready master 41h v1.22.4
122-
ibm-powervs-1-md-0-4dc5c Ready <none> 41h v1.22.4
123-
ibm-powervs-1-md-0-dbxb7 Ready <none> 20h v1.22.4
118+
ibm-powervs-1-control-plane-rg6xv Ready master 41h v1.26.2
119+
ibm-powervs-1-md-0-4dc5c Ready <none> 41h v1.26.2
120+
ibm-powervs-1-md-0-dbxb7 Ready <none> 20h v1.26.2
124121
```

0 commit comments

Comments
 (0)