Ask a question
Save the Date! watsonx Hackathon - Pre-TechXchange Conference Event
Installer Provisioned Infrastructure method can be used to deploy an OpenShift cluster on IBM PowerVS.
This blog post 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
openshift-install
openshift-client-linux-amd64-4.16.x.tar.gz
tar -xvf openshift-install-linux.tar.gz
openshift
-install
$PATH
/usr/bin/
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
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>
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.serviceInstanceGUID: GUID of the workspace (formerly called service instance) in which cluster nodes will be created.
install-config.yaml
openshift-install create manifests --dir=ocp-deploy
ocp-deploy/manifests
openshift-install create cluster --dir=ocp-deploy --log-level=debug
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>