Create required resources for IBM PowerVS cluster

Steps

  • To deploy cluster which creates required resources, set powervs.cluster.x-k8s.io/create-infra:true annotation to IBMPowerVSCluster resource.
  • The cluster will be configured with IBM PowerVS external cloud provider
  • The create_infra template will use clusterresourceset and will create the necessary config map, secret and roles to run the cloud controller manager
  • As a prerequisite set the provider-id-fmt flag with value v2

Deploy PowerVS cluster with IBM PowerVS cloud provider

IBMCLOUD_API_KEY=<api_key>> \
IBMPOWERVS_SSHKEY_NAME="karthik-ssh" \
COS_BUCKET_REGION="us-south" \
COS_BUCKET_NAME="power-oss-bucket" \
COS_OBJECT_NAME=capibm-powervs-centos-streams8-1-28-4-1707287079.ova.gz \
IBMACCOUNT_ID="<account_id>" \
IBMPOWERVS_REGION="wdc" \
IBMPOWERVS_ZONE="wdc06" \
IBMVPC_REGION="us-east" \
IBM_RESOURCE_GROUP="ibm-hypershift-dev" \
BASE64_API_KEY=$(echo -n $IBMCLOUD_API_KEY | base64) \
clusterctl generate cluster capi-powervs- --kubernetes-version v1.28.4 \
--target-namespace default \
--control-plane-machine-count=3 \
--worker-machine-count=1 \
--from ./cluster-template-powervs-create-infra.yaml | kubectl apply -f -