If you want to uninstall the IBM®
watsonx.data software from your cluster, you must uninstall the running instance of the control plane and
services.
watsonx.data on Red Hat® OpenShift®
About this task
If you plan to uninstall the watsonx.data
operators, you must uninstall all instances of watsonx.data
before you uninstall the operators.
Use the cpd-cli manage delete-cr command to remove the custom resources.
The instructions assume that you are removing all of the components at the same time, which
enables you to complete the task in fewer steps.
To uninstall watsonx.data components. The
command that you run depends on where the operators are installed.
-
Run the following command to log in to OpenShift Container Platform (OCP) with your API token
as a user with sufficient permissions to complete this task. For example,
cpd-cli manage login-to-ocp --token=<access_token> --server=<cluster_url>
- Run the following command to determine which components are installed in the
project.
cpd-cli manage get-cr-status --cpd_instance_ns=<project name>
- Set the
COMPONENTS environment variable to include the components that
were returned by the get-cr-status command. If you want to uninstall watsonx.data, set export
COMPONENTS=watsonx_data.
export COMPONENTS=<components>
- Set the cpd instance namespace to where watsonx.data instance is installed.
export PROJECT_CPD_INST_OPERANDS=<watsonx.data_instance_namespace>
- Delete the custom resources for the specified components in the project.
cpd-cli manage delete-cr --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} --components=${COMPONENTS}
- Run the
get-cr-status to confirm that all of the components were
removed.
cpd-cli manage get-cr-status --cpd_instance_ns=<project name>
- Clean up any remaining resources in the project.
- Set the RESOURCE_LIST environment variable.
export RESOURCE_LIST=configmaps,persistentvolumeclaims,pods,secret,serviceaccounts,Service,StatefulSets,deployment,job,cronjob,ReplicaSet,Route,RoleBinding,Role,PodDisruptionBudget,OperandRequest
- Run the following command to identify any remaining resources in the
PROJECT_CPD_INST_OPERANDS project.
oc get ${RESOURCE_LIST} -n ${PROJECT_CPD_INST_OPERANDS} --ignore-not-found
- Run the following command to delete any resources that are returned.
oc delete -n ${PROJECT_CPD_INST_OPERANDS} <object-type> <object-name>
- Remove the PROJECT_CPD_INSTANCE project.
oc delete project ${PROJECT_CPD_INST_OPERANDS}
The components are uninstalled from the ${PROJECT_CPD_INST_OPERANDS}
project.