Uninstalling OpenShift Data Science Self-managed

Red Hat OpenShift Data Science Self-managed 1.29

Remove Red Hat OpenShift Data Science Self-managed from your Red Hat OpenShift Container Platorm cluster using the OpenShift CLI

Abstract

Use the OpenShift CLI to uninstall Red Hat OpenShift Data Science Self-managed from your OpenShift Container Platform cluster.

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.

  1. Make sure that you are logged in to the Customer Portal.
  2. Make sure that you are looking at the Multi-page HTML format of this document.
  3. Highlight the text that you want to provide feedback on. The Add Feedback prompt appears.
  4. Click Add Feedback.
  5. Enter your comments in the Feedback text box and click Submit.
Important

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-admin permissions.
  • You must have installed the OpenShift CLI (oc).
  • You have backed up the persistent disk or volume containing your Persistent Volume Claims (PVCs).

Procedure

  1. Log into OpenShift Container Platform from the CLI.
  2. Create a ConfigMap to delete the Red Hat OpenShift Data Science Operator:

    oc create configmap delete-self-managed-odh -n redhat-ods-operator
  3. To delete the rhods-operator, set the addon-managed-odh-delete label to true:

    oc label configmap/delete-self-managed-odh api.openshift.com/addon-managed-odh-delete=true -n redhat-ods-operator
  4. When all the objects are removed, delete the redhat-ods-operator namespace:

    1. Set the name of the project to check:

      PROJECT_NAME=redhat-ods-applications
    2. 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"
    3. Delete the redhat-ods-operator namespace:

      oc delete namespace redhat-ods-operator

Verification

  • Confirm that the rhods-operator no 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-operator

      oc get namespaces | grep redhat-ods*

Chapter 3. Additional resources

Legal Notice

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.