How To
Summary
use this runbook to add openshift data foundation to a ROKS cluster
Environment
ROKS VPC - IBM Cloud Kubernetes services with Red Hat OpenShift
Steps
- Verify there are at least three worker nodes of at least 16x64 in different worker zones.
- If there are not, create a new worker pool with at least three 16x64 worker nodes in different zones.
- This can be done by selecting Worker pools >> Add+
- Enable all Worker zones and subnets
- Change to 1 Worker node per zone that is 16x64
- Disable worker pool encryption
- Name it "storage" if one does not exist. Select "create"

- uninstall openshift data foundation from the ibmcloud console if it was installed wrong.

- verify there is not a ocscluster CRD in the ocs if there is, delete it.
- In OpenShift Cluster UI, go to Administration >> CustomResourceDefinitions
- Delete ocscluster custom resource definition


- Once everything is set up and cleaned up, make sure everything else is removed as necessary as well. If these commands aren't working, please make sure everything listed on this page is installed so that these commands work as expected: https://cloud.ibm.com/docs/openshift?topic=openshift-cli-install
- In Command Line a. Login to OpenShift Cluster and IBM Cloud (Please know the first 4 instructions (i-iv) will fail if everything is cleaned up correctly. Otherwise, this will assist with the final steps of cleanup)
- oc login --token={token} --server={server:port}
- ibmcloud login --sso
- Run these commands
- ocscluster_name=`oc get ocscluster | awk 'NR==2 {print $1}'`
- oc delete ocscluster --all --wait=false
- kubectl patch ocscluster/$ocscluster_name -p '{"metadata":{"finalizers":[]}}' --type=merge
- oc delete ns openshift-storage --wait=false
- ibmcloud oc vpc outbound-traffic-protection disable --cluster {cluster name from IBM Cloud UI} * Cluster Name Example: itzroks-663002um2y-0fb3ejqr
- oc edit operatorhub cluster -n openshift-marketplace
* Change disableAllDefaultSources to false - oc get po -n openshift-marketplace
* Make sure all pods are running before continuing
- oc login --token={token} --server={server:port}
- In Command Line a. Login to OpenShift Cluster and IBM Cloud (Please know the first 4 instructions (i-iv) will fail if everything is cleaned up correctly. Otherwise, this will assist with the final steps of cleanup)
- From there, in the IBM Cloud UI, do the following:
- Overview >> Add Ons >> Install OpenShift Data Foundation
- Select the "storage" worker pool created in step 1.a
- taint the workers
- Overview >> Add Ons >> Install OpenShift Data Foundation
- In OpenShift Cluster UI
- Operators >> Installed Operators
- Validate that the Operator is showing the "Successful" status
- You can also look for operator
- storageclasses - go to Installed Operators > ocs-storagecluster-storagesystem > Resources > ocs-storagecluster > Resources
- You should be able to see 4-5 additional resources. This can also take a moment to reflect if the OCP was installed recently
- You should be able to see 4-5 additional resources. This can also take a moment to reflect if the OCP was installed recently
- oc get pods -n openshift-storage
- You can also look for operator
- Validate that the Operator is showing the "Successful" status
- Operators >> Installed Operators
The official IBM Cloud documentation for this can be found here, however, the steps above should be more reliable for our purposes: https://cloud.ibm.com/docs/openshift?topic=openshift-deploy-odf-vpc&interface=ui
Related Information
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"","label":""},"Business Unit":{"code":"","label":""},"Product":{"code":"SSNR6KN","label":"IBM Technology Zone"},"ARM Category":[{"code":"a8mKe0000004CUbIAM","label":"Infrastructure-\u003EIBM Cloud"}],"ARM Case Number":"TS017264552","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
26 December 2024
UID
ibm17170685

