Skip to content

Commit 28d2a96

Browse files
authored
Add information about building machine boot images (#752)
1 parent 817673e commit 28d2a96

File tree

5 files changed

+68
-4
lines changed

5 files changed

+68
-4
lines changed

docs/book/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- [Rapid iterative development with Tilt](./developer/tilt.md)
1919
- [Guide for API conversions](./developer/conversion.md)
2020
- [Release Process](./developer/release.md)
21+
- [How to build the machine boot images](./developer/build-images.md)
2122
- [Troubleshooting](./user/troubleshooting.md)
2223
- [Reference](./reference/reference.md)
2324
- [Regions-Zones Mapping](./reference/regions-zones-mapping.md)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# How to build the machine boot images
2+
3+
## VPC
4+
TO-DO
5+
6+
## Power VS
7+
8+
Compose the `user-varibales.json` file contains the information for the Power VS
9+
10+
```json
11+
{
12+
"account_id": "",
13+
"apikey": "",
14+
"capture_cos_access_key": "",
15+
"capture_cos_bucket": "",
16+
"capture_cos_region": "",
17+
"capture_cos_secret_key": "",
18+
"key_pair_name": "",
19+
"kubernetes_deb_version": "",
20+
"kubernetes_rpm_version": "",
21+
"kubernetes_semver": "",
22+
"kubernetes_series": "",
23+
"region": "",
24+
"service_instance_id": "",
25+
"ssh_private_key_file": "",
26+
"zone": ""
27+
}
28+
```
29+
30+
- `account_id`: IBM Cloud account ID
31+
- `apikey`: IBM Cloud API Key
32+
- `capture_cos_access_key`: Access key for the IBM Cloud Object Storage(COS) to export the image to
33+
- `capture_cos_bucket`: IBM Cloud Object Storage(COS) bucket name
34+
- `capture_cos_region`: IBM Cloud Object Storage(COS) bucket region
35+
- `capture_cos_secret_key`: IBM Cloud Object Storage(COS) secret key
36+
- `key_pair_name`: SSH key name present in the Power VS
37+
- `kubernetes_deb_version`: Kubernetes deb version, e.g: 1.24.2-00
38+
- `kubernetes_rpm_version`: Kubernetes RPM package version, e.g: 1.24.2-0
39+
- `kubernetes_semver`: e.g: v1.24.2
40+
- `kubernetes_series`: e.g: v1.24
41+
- `region`: Power VS region, e.g: osa
42+
- `service_instance_id`: Power VS service instance ID
43+
- `ssh_private_key_file`: Path to the SSH private key file used to connect to the vm while image preparation, e.g: /Users/manjunath/.ssh/id_rsa
44+
- `zone`: Power VS zone, e.g: osa21
45+
46+
```shell
47+
# Clone the image-builder repository
48+
$ git clone https://github.com/kubernetes-sigs/image-builder.git
49+
$ cd image-builder/images/capi
50+
$ PACKER_VAR_FILES=user-variables.json make build-powervs-centos-8
51+
```

docs/book/src/developer/index.md

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

33
- [Rapid iterative development with Tilt](/developer/tilt.html)
44
- [Guide for API conversions](/developer/conversion.html)
5-
- [Release process](/developer/release.html)
5+
- [Release process](/developer/release.html)
6+
- [How to build machine boot images](/developer/build-images.html)

docs/book/src/machine-images/powervs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
| us-south | power-oss-bucket | [capibm-powervs-centos-streams8-1-22-4.ova.gz][streams8-1-22-4] | 1.22.4 |
88
| us-south | power-oss-bucket | [capibm-powervs-centos-streams8-1-24-2.ova.gz][streams8-1-24-2] | 1.24.2 |
99

10-
10+
Note: These images are built using the [image-builder][image-builder] tool and more information can be found [here](../developer/build-images.md#power-vs)
1111

1212
[streams8-1-24-2]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-24-2.ova.gz
1313
[streams8-1-23-5]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-23-5.ova.gz
1414
[streams8-1-22-4]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-22-4.ova.gz
15+
[image-builder]: https://github.com/kubernetes-sigs/image-builder

docs/book/src/topics/powervs/prerequisites.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ A public network is required for your kubernetes cluster. Perform the following
5555
DNS 8.8.8.8, 9.9.9.9
5656
```
5757

58-
## Build workload cluster image:
58+
## Import the machine boot image:
5959

60-
1. ***TO-DO***
60+
```shell
61+
$ export IBMCLOUD_API_KEY=<API_KEY>
62+
$ pvsadm image import --instance-id <SERVICE_INSTANCE_ID> -b <BUCKETNAME> --object <OBJECT> --pvs-image-name <POWERVS_IMAGE_NAME> --bucket-region <REGION> --public-bucket
63+
```
64+
65+
e.g:
66+
```shell
67+
$ pvsadm image import --instance-id 6d892c30-5387-4685-85d0-4999d9c22a8c -b power-oss-bucket --object capibm-powervs-centos-streams8-1-24-2.ova.gz --pvs-image-name capibm-powervs-centos-streams8-1-24-2 --bucket-region us-south --public-bucket
68+
```
69+
70+
For more information about the images can be found at [machine-images](../../machine-images/powervs.md) section

0 commit comments

Comments
 (0)