Uninstalling OpenShift Data Science Self-managed
Remove Red Hat OpenShift Data Science Self-managed from your Red Hat OpenShift Container Platorm cluster using the OpenShift CLI
Abstract
Chapter 1. Providing feedback on Red Hat documentation
Let Red Hat know how we can make our documentation better. You can provide feedback directly from a documentation page by following the steps below.
- Make sure that you are logged in to the Customer Portal.
- Make sure that you are looking at the Multi-page HTML format of this document.
- Highlight the text that you want to provide feedback on. The Add Feedback prompt appears.
- Click Add Feedback.
- Enter your comments in the Feedback text box and click Submit.
Some ad blockers might impede your ability to provide feedback on Red Hat documentation. If you are using a web browser that has an ad blocker enabled and you are unable to leave feedback, consider disabling your ad blocker. For more information about how to disable your ad blocker, see the documentation for your web browser.
Red Hat automatically creates a tracking issue each time you submit feedback. Open the link that is displayed after you click Submit and start watching the issue, or add more comments to give us more information about the problem.
Thank you for taking the time to provide your feedback.
Chapter 2. Uninstalling OpenShift Data Science Self-managed
You can use the Red Hat OpenShift CLI (oc) to safely uninstall Red Hat OpenShift Data Science Self-managed from your OpenShift Container Platform cluster. When you uninstall Red Hat OpenShift Data Science Self-managed using the web console, only the operator is removed. As a result, other OpenShift Data Science components are not uninstalled, leaving the cluster in an inconsistent state. To avoid this scenario, use the Red Hat OpenShift CLI (oc) to uninstall Red Hat OpenShift Data Science Self-managed from your OpenShift Container Platform cluster.
Prerequisites
-
You have access to an OpenShift cluster using an account with
cluster-adminpermissions. -
You must have installed the OpenShift CLI (
oc). - You have backed up the persistent disk or volume containing your Persistent Volume Claims (PVCs).
Procedure
- Log into OpenShift Container Platform from the CLI.
Create a ConfigMap to delete the Red Hat OpenShift Data Science Operator:
oc create configmap delete-self-managed-odh -n redhat-ods-operator
To delete the
rhods-operator, set theaddon-managed-odh-deletelabel totrue:oc label configmap/delete-self-managed-odh api.openshift.com/addon-managed-odh-delete=true -n redhat-ods-operator
When all the objects are removed, delete the
redhat-ods-operatornamespace:Set the name of the project to check:
PROJECT_NAME=redhat-ods-applications
Continue checking until the project no longer exists:
while oc get project $PROJECT_NAME &> /dev/null; do echo "$PROJECT_NAME still exists" sleep 1 done echo "$PROJECT_NAME no longer exists"
Delete the
redhat-ods-operatornamespace:oc delete namespace redhat-ods-operator
Verification
Confirm that the
rhods-operatorno longer exists:oc get subscriptions --all-namespaces | grep rhods-operator
Confirm that the following project namespaces no longer exist:
-
redhat-ods-applications -
redhat-ods-monitoring redhat-ods-operatoroc get namespaces | grep redhat-ods*
-