Skip to content

Commit b003237

Browse files
committed
docs chagnes to support infra creation
1 parent 521e015 commit b003237

File tree

5 files changed

+491
-9
lines changed

5 files changed

+491
-9
lines changed

docs/book/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [Creating a cluster](./topics/powervs/creating-a-cluster.md)
1818
- [Creating a cluster with External Cloud Provider](./topics/powervs/external-cloud-provider.md)
1919
- [Creating a cluster from ClusterClass](./topics/powervs/clusterclass-cluster.md)
20+
- [Creating a cluster by auto creating required resources](./topics/powervs/create-resources.md)
2021
- [Using autoscaler with scaling from 0 machine](./topics/powervs/autoscaler-scalling-from-0.md)
2122
- [capibmadm CLI](./topics/capibmadm/index.md)
2223
- [PowerVS Commands](./topics/capibmadm/powervs/index.md)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Create required resources for IBM PowerVS cluster
2+
3+
## Steps
4+
5+
- To deploy cluster which creates required resources, set ```powervs.cluster.x-k8s.io/create-infra:true``` annotation to IBMPowerVSCluster resource.
6+
- The cluster will be configured with IBM PowerVS external [cloud provider](https://kubernetes.io/docs/concepts/architecture/cloud-controller/)
7+
- The [create_infra template](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/templates/cluster-template-powervs-create-infra.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
8+
- As a prerequisite set the `provider-id-fmt` [flag](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/5e7f80878f2252c6ab13c16102de90c784a2624d/main.go#L168-L173) with value v2
9+
10+
### Deploy PowerVS cluster with IBM PowerVS cloud provider
11+
12+
```
13+
IBMCLOUD_API_KEY=<api_key>> \
14+
IBMPOWERVS_SSHKEY_NAME="karthik-ssh" \
15+
COS_BUCKET_REGION="us-south" \
16+
COS_BUCKET_NAME="power-oss-bucket" \
17+
COS_OBJECT_NAME=capibm-powervs-centos-streams8-1-28-4-1707287079.ova.gz \
18+
IBMACCOUNT_ID="<account_id>" \
19+
IBMPOWERVS_REGION="wdc" \
20+
IBMPOWERVS_ZONE="wdc06" \
21+
IBMVPC_REGION="us-east" \
22+
IBM_RESOURCE_GROUP="ibm-hypershift-dev" \
23+
BASE64_API_KEY=$(echo -n $IBMCLOUD_API_KEY | base64) \
24+
clusterctl generate cluster capi-powervs- --kubernetes-version v1.28.4 \
25+
--target-namespace default \
26+
--control-plane-machine-count=3 \
27+
--worker-machine-count=1 \
28+
--from ./cluster-template-powervs-create-infra.yaml | kubectl apply -f -
29+
```

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
- [Creating a cluster](/topics/powervs/creating-a-cluster.html)
66
- [Creating a cluster with external cloud provider](/topics/powervs/external-cloud-provider.html)
77
- [Creating a cluster from ClusterClass](/topics/powervs/clusterclass-cluster.html)
8+
- [Creating a cluster by auto creating required resources](/topics/powervs/create-resources.html)
89
- [Using autoscaler with scaling from 0 machine](/topics/powervs/autoscaler-scalling-from-0.html)

docs/proposal/20231109-powervs-infra-creation.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,6 @@ type VPCResourceReference struct {
158158

159159
// CosInstance represents IBM Cloud COS instance.
160160
type CosInstance struct {
161-
// PresignedURLDuration defines the duration for which presigned URLs are valid.
162-
//
163-
// This is used to generate presigned URLs for S3 Bucket objects, which are used by
164-
// control-plane and worker nodes to fetch bootstrap data.
165-
//
166-
// When enabled, the IAM instance profiles specified are not used.
167-
// +optional
168-
PresignedURLDuration *metav1.Duration `json:"presignedURLDuration,omitempty"`
169-
170161
// Name defines name of IBM cloud COS instance to be created.
171162
// +kubebuilder:validation:MinLength:=3
172163
// +kubebuilder:validation:MaxLength:=63

0 commit comments

Comments
 (0)