You can remove an Event Streams instance by using the oc
utility or the OpenShift Container Platform web console.
You can also remove the Event Streams operator itself.
Uninstalling an Event Streams instance
Uninstalling using the OpenShift Container Platform web console
To delete an Event Streams instance:
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand the Operators dropdown and select Installed Operators to open the Installed Operators page.
- Expand the Project dropdown and select the project the instance is installed in. Click the operator called IBM Event Streams managing the project.
- In the Operator Details panel, select the Event Streams tab to show the Event Streams instances in the selected namespace.
- Click More options next to the instance to be deleted to open the actions menu.
- Click the Delete EventStreams menu option to open the confirmation panel.
- Check the namespace and instance name and click Delete to shutdown the associated pods and delete the instance.
Check uninstallation progress
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand the Workloads dropdown and select Pods to open the Pods dashboard.
- Click Select All Filters to display pods in any state.
- Enter the name of the Event Streams instance being deleted in the Filter by name box.
- Wait for all the Event Streams pods to be displayed as Terminating and then be removed from the list.
Removing persistence resources
If you had enabled persistence for the Event Streams instance but set the deleteClaim
storage property to false
, you will need to manually remove the associated Persistent Volumes (PVs) and Persistent Volume Claims (PVCs) that were created at installation time.
The deleteClaim
property is configured in the EventStreams
custom resource and can be set to true
during installation to ensure the PVs and PVCs are automatically removed when the instance is deleted.
For Kafka and ZooKeeper, this property can be found as follows:
spec.strimziOverrides.kafka.storage.deleteClaim
spec.strimziOverrides.zookeeper.storage.deleteClaim
For other components, this property can be found as follows:
spec.<component_name>.storage.deleteClaim
Important: This change will cause data to be removed during an upgrade.
For example, to configure automatic deletion for the Kafka storage when uninstalling:
apiVersion: eventstreams.ibm.com/v1beta1
kind: EventStreams
...
spec:
...
strimziOverrides:
...
kafka:
...
storage:
type: persistent-claim
...
deleteClaim: true
To remove any remaining storage, delete the PVCs first then delete any remaining PVs.
Delete the Persistent Volume Claims (PVCs):
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand the Storage dropdown and select Persistent Volume Claims to open the Persistent Volume Claims page.
- In the Project dropdown select the required namespace.
- Click Select All Filters to display PVCs in any state.
- Enter the name of the Event Streams instance in the Filter by name box.
- For each PVC to be deleted, make a note of the Persistent Volume listed for that PVC and then click More options to open the actions menu.
- Click the Delete Persistent Volume Claim menu option to open the confirmation panel.
- Check the PVC name and namespace, then click Delete to remove the PVC.
Delete remaining Persistent Volumes (PVs):
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand the Storage dropdown and select Persistent Volumes to open the Persistent Volumes page.
- In the Project dropdown select the required namespace.
- For each PV you made a note of when deleting PVCs, click More options to open the actions menu.
- Click the Delete Persistent Volume menu option to open the confirmation panel.
- Check the PV name and click Delete to remove the PV.
Uninstalling using the CLI
You can delete an Event Streams installation using the oc
command line tool:
- Log in to your Red Hat OpenShift Container Platform as a cluster administrator by using the
oc
CLI (oc login
). - Ensure you are using the project where your Event Streams instance is located:
oc project <project_name>
- Run the following command to display the Event Streams instances:
oc get eventstreams
- Run the following command to delete your instance:
oc delete es --selector app.kubernetes.io/instance=<instance_name>
Check uninstallation progress
Run the following command to check the progress:
oc get pods --selector app.kubernetes.io/instance=<instance_name>
Pods will initially display a STATUS Terminating
and then be removed from the output as they are deleted.
$ oc get pods --selector app.kubernetes.io/instance=minimal-prod
>
NAME READY STATUS RESTARTS AGE
minimal-prod-entity-operator-77dfff7c79-cnrx5 0/2 Terminating 0 5h35m
minimal-prod-ibm-es-admapi-b49f976c9-xhsrv 0/1 Terminating 0 5h35m
minimal-prod-ibm-es-recapi-6f6bd784fc-jvf9z 0/1 Terminating 0 5h35m
minimal-prod-ibm-es-ac-reg-6dffdb54f9-dfdpl 0/3 Terminating 0 5h35m
minimal-prod-ibm-es-ui-5dd7496dbc-qks7m 0/2 Terminating 0 5h35m
minimal-prod-kafka-0 2/2 Terminating 0 5h36m
minimal-prod-zookeeper-0 0/2 Terminating 0 5h37m
Removing persistence resources
If you had enabled persistence for the Event Streams instance but set the deleteClaim
storage property to false
, you will need to manually remove the associated Persistent Volumes (PVs) and Persistent Volume Claims (PVCs) that were created at installation time.
The deleteClaim
property is configured in the EventStreams
custom resource and can be set to true
during installation to ensure the PVs and PVCs are automatically removed when the instance is deleted.
For Kafka and ZooKeeper, this property can be found as follows:
spec.strimziOverrides.kafka.storage.deleteClaim
spec.strimziOverrides.zookeeper.storage.deleteClaim
For other components, this property can be found as follows:
spec.<component_name>.storage.deleteClaim
Important: This change will cause data to be removed during an upgrade.
For example, to configure automatic deletion for the Kafka storage when uninstalling:
apiVersion: eventstreams.ibm.com/v1beta1
kind: EventStreams
...
spec:
...
strimziOverrides:
...
kafka:
...
storage:
type: persistent-claim
...
deleteClaim: true
To remove any remaining storage, delete the PVCs first then delete any remaining PVs.
Delete the PVCs:
-
Run the following command to list the remaining PVCs associated with the deleted instance:
oc get pvc --selector app.kubernetes.io/instance=<instance_name>
-
Run the following to delete a PVC:
oc delete pvc <pvc_name>
Delete remaining PVs:
- Run the following command to list the remaining PVs:
oc get pv
- Run the following command to delete any PVs that were listed in the Volume column of the deleted PVCs.
oc delete pv <pv_name>
Note: Take extreme care to select the correct PV name to ensure you do not delete storage associated with a different application instance.
Uninstalling an Event Streams operator
To delete an Event Streams operator:
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand Operators and click Installed Operators.
- In the Project dropdown select the required namespace. For cluster-wide operators, select the
openshift-operators
project. - Click More options next to the Event Streams operator to be deleted to open the actions menu.
- Click the Uninstall Operator menu option to open the confirmation panel.
- Check the namespace and operator name, then click Remove to uninstall the operator.
Removing Event Streams Custom Resoure Definitions
The Event Streams Custom Resource Definitions (CRDs) are not deleted automatically. You must manually delete any CRDs that you do not want:
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand Administration and click Custom Resource Definitions.
- Enter
eventstreams
in the Filter by name box to filter the CRDs associated with Event Streams. - Click More options next to the CRD to be deleted to open the actions menu.
- Click the Delete Custom Resource Definition menu option to open the confirmation panel.
- Check the name of the CRD and click Delete to remove the CRD.
Uninstalling IBM Cloud Pak foundational services
For information about uninstalling IBM Cloud Pak foundational services see the IBM Cloud Pak foundational services documentation.