Power Developer eXchange A place for IBM Power open source developers to learn, collaborate, contribute, and create Join / Log in
The Power VS IPI feature is introduced as a Tech Preview with the release of OpenShift 4.13.
This blog covers creating and destroying a “public” OpenShift cluster i.e., one which is accessible through the internet and the nodes of the cluster can access the internet.
It is also possible to create an OpenShift cluster using IPI on Power VS for
However, these two scenarios are outside the scope of this blog post.
ibmcloud iam access-group-policy-create GROUP_NAME {-f, --file @JSON_FILE | --roles ROLE_NAME1,ROLE_NAME2... [--service-name SERVICE_NAME] [--service-instance SERVICE_INSTANCE] [--region REGION] [--resource-type RESOURCE_TYPE] [--resource RESOURCE] [--resource-group-name RESOURCE_GROUP_NAME] [--resource-group-id RESOURCE_GROUP_ID]}
ibmcloud iam access-group-policy-create example_group --roles Administrator --service-name sample-service
tar -xvf openshift-install-linux.tar.gz
openshift
-install
$PATH
/usr/bin/
Default
platform.powervs.powervsResourceGroup
install-
config.yaml
RELEASE_IMAGE=$(openshift-install version | awk '/release image/ {print $3}')
CCO_IMAGE=$(oc adm release info --image-for='cloud-credential-operator' $RELEASE_IMAGE -a <path to pull secret file>
)
oc image extract $CCO_IMAGE --file="/usr/bin/ccoctl" -a <path to pull secret file>
chmod 775 ccoctl
Extract the credentials
mkdir credreqs
oc adm release extract --cloud=powervs --credentials-requests` $RELEASE_IMAGE --to=./credreqs
ccoctl ibmcloud create-service-id --credentials-requests-dir <path-to-directory-with-list-of-credentials-requests> --name <name> --resource-group-name <resource-group-name>resource-group-name is optional but recommended.
ccoctl ibmcloud create-service-id --credentials-requests-dir <path-to-directory-with-list-of-credentials-requests> --name <name> --resource-group-name <resource-group-name>
Note that cluster resources will be charged as per IBM pricing and follows an operational expenditure model.
mkdir ocp-deploy
openshift-install create install-config --dir=ocp-deploy
ibmcloud login
ibmcloud resource service-instance <name of the workspace (formerly called service instance)
>
ibmcloud resource service-instance <name of the workspace (formerly called service instance)> | grep -i GUID
ocp-deploy/install-config.yaml
vi ocp-deploy/install-config.yaml
platform.powervs.serviceInstanceID: GUID of the workspace (formerly called service instance) in which cluster nodes will be created.
platform.powervs.powervsResourceGroup: Resource group from requirement #10
openshift-install create manifests --dir=ocp-deploy
ocp-deploy/manifests
log-level
ocp
-deploy
.openshift-install.log
auth
metadata.json
ocp-deploy
cd <parent path of openshift-install binary and cluster artifact directory>
openshift-install destroy cluster --dir=ocp-deploy --log-level=debug
ccoctl ibmcloud delete-service-id --credentials-requests-dir <path-to-directory-with-list-of-credentials-requests> --name <name>