Menu Close
Uninstalling OpenShift Data Science
Remove Red Hat OpenShift Data Science from your Red Hat OpenShift Dedicated cluster using Red Hat OpenShift Cluster Manager
Abstract
Preface
See the following documents for service and life cycle information related to this release:
Chapter 1. Backing up storage data from Amazon EBS
Red Hat recommends that you back up the data on your persistent volume claims (PVCs) regularly. Backing up your data is particularly important before deleting a user and before uninstalling OpenShift Data Science, as all PVCs are deleted when OpenShift Data Science is uninstalled.
Prerequisites
- You have credentials for OpenShift Cluster Manager (https://console.redhat.com/openshift/).
- You have administrator access to the OpenShift Dedicated cluster.
- You have credentials for the Amazon Web Services (AWS) account that the OpenShift Dedicated cluster is deployed under.
Procedure
Determine the IDs of the persistent volumes (PVs) that you want to back up.
- In the OpenShift Dedicated web console, change into the Administrator perspective.
- Click Home → Projects.
Click the rhods-notebooks project.
The Details page for the project opens.
Click the PersistentVolumeClaims in the Inventory section.
The PersistentVolumeClaims page opens.
Note the ID of the persistent volume (PV) that you want to back up.
NoteThe persistent volumes (PV) that you make a note of are required to identify the correct EBS volume to back up in your AWS instance.
Locate the EBS volume containing the PVs that you want to back up.
See Create Amazon EBS snapshots for more information.
- Log in to AWS (https://aws.amazon.com) and ensure that you are viewing the region that your OpenShift Dedicated cluster is deployed in.
- Click Services.
- Click Compute → EC2.
Click Elastic Block Storage → Volumes in the side navigation.
The Volumes page opens.
In the search bar, enter the ID of the persistent volume (PV) that you made a note of earlier.
The Volumes page reloads to display the search results.
-
Click on the volume shown and verify that any
kubernetes.io/created-for/pvc/namespace
tags contain the valuerhods-notebooks
, and anykubernetes.io/created-for/pvc/name
tags match the name of the persistent volume that the EC2 volume is being used for, for example,jupyterhub-nb-user1-pvc
.
Back up the EBS volume that contains your persistent volume (PV).
Right-click on the volume that you want to back up and select Create Snapshot from the list.
The Create Snapshot page opens.
- Enter a Description for the volume.
Click Create Snapshot.
The snapshot of the volume is created.
- Click Close.
Verification
- The snapshot that you created is visible on the Snapshots page in AWS.
Additional resources
Chapter 2. Uninstalling OpenShift Data Science
You can use Red Hat OpenShift Cluster Manager to safely uninstall Red Hat OpenShift Data Science from your OpenShift Dedicated cluster.
Prerequisites
- Credentials for OpenShift Cluster Manager (https://console.redhat.com/openshift/).
- Administrator access to the OpenShift Dedicated cluster.
- You have backed up the EBS volume containing your Persistent Volume Claims (PVCs). See Create Amazon EBS snapshots for more information.
Procedure
- Log in to OpenShift Cluster Manager (https://console.redhat.com/openshift/).
Click Clusters.
The Clusters page opens.
Click the name of the cluster that hosts the instance OpenShift Data Science to uninstall.
The Details page for the cluster opens.
- Click the Add-ons tab and locate the Red Hat OpenShift Data Science card.
Click Uninstall.
This process takes approximately 30 minutes to complete. Do not manually delete any resources while uninstalling OpenShift Data Science, as this can interfere with the uninstall process.
OpenShift Data Science is uninstalled and any persistent volume claims (PVCs) associated with your OpenShift Data Science instance are deleted. However, any OpenShift Data Science user groups that you previously created remain on your cluster.
Verification
-
In OpenShift Cluster Manager, under the Add-ons tab for the cluster, confirm that the OpenShift Data Science card does not show the
Installed
state. In OpenShift Dedicated, click Home → Projects and confirm that the following project namespaces are not visible:
-
redhat-ods-applications
-
redhat-ods-monitoring
-
redhat-ods-operator
-
rhods-notebooks
-
Additional resources