Removing OpenShift Serverless
Removing Serverless from your cluster
Abstract
Chapter 1. Removing OpenShift Serverless overview Copy linkLink copied to clipboard!
If you need to remove OpenShift Serverless from your cluster, you can do so by manually removing the OpenShift Serverless Operator and other OpenShift Serverless components. Before you can remove the OpenShift Serverless Operator, you must remove Knative Serving and Knative Eventing.
After uninstalling the OpenShift Serverless, you can remove the Operator and API custom resource definitions (CRDs) that remain on the cluster.
The steps for fully removing OpenShift Serverless are detailed in the following procedures:
Chapter 2. Uninstalling OpenShift Serverless Knative Eventing Copy linkLink copied to clipboard!
Before you can remove the OpenShift Serverless Operator, you must remove Knative Eventing. To uninstall Knative Eventing, you must remove the KnativeEventing
custom resource (CR) and delete the knative-eventing
namespace.
2.1. Uninstalling Knative Eventing Copy linkLink copied to clipboard!
Prerequisites
- You have cluster administrator permissions on OpenShift Container Platform, or you have cluster or dedicated administrator permissions on OpenShift Dedicated.
-
Install the OpenShift CLI (
oc
).
Procedure
Delete the
KnativeEventing
CR:oc delete knativeeventings.operator.knative.dev knative-eventing -n knative-eventing
$ oc delete knativeeventings.operator.knative.dev knative-eventing -n knative-eventing
Copy to Clipboard Copied! Toggle word wrap Toggle overflow After the command has completed and all pods have been removed from the
knative-eventing
namespace, delete the namespace:oc delete namespace knative-eventing
$ oc delete namespace knative-eventing
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 3. Uninstalling OpenShift Serverless Knative Serving Copy linkLink copied to clipboard!
Before you can remove the OpenShift Serverless Operator, you must remove Knative Serving. To uninstall Knative Serving, you must remove the KnativeServing
custom resource (CR) and delete the knative-serving
namespace.
3.1. Uninstalling Knative Serving Copy linkLink copied to clipboard!
Prerequisites
- You have cluster administrator permissions on OpenShift Container Platform, or you have cluster or dedicated administrator permissions on OpenShift Dedicated.
-
Install the OpenShift CLI (
oc
).
Procedure
Delete the
KnativeServing
CR:oc delete knativeservings.operator.knative.dev knative-serving -n knative-serving
$ oc delete knativeservings.operator.knative.dev knative-serving -n knative-serving
Copy to Clipboard Copied! Toggle word wrap Toggle overflow After the command has completed and all pods have been removed from the
knative-serving
namespace, delete the namespace:oc delete namespace knative-serving
$ oc delete namespace knative-serving
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 4. Removing the OpenShift Serverless Operator Copy linkLink copied to clipboard!
After you have removed Knative Serving and Knative Eventing, you can remove the OpenShift Serverless Operator. You can do this by using the web console or the oc
CLI.
Chapter 5. Removing the OpenShift Serverless Logic Operator Copy linkLink copied to clipboard!
If you need to remove OpenShift Serverless Logic from your cluster, you can do so by manually removing the OpenShift Serverless Logic Operator and other OpenShift Serverless Logic components.
You can delete the OpenShift Serverless Logic Operator by using the web console.
Chapter 6. Deleting OpenShift Serverless custom resource definitions Copy linkLink copied to clipboard!
After uninstalling the OpenShift Serverless, the Operator and API custom resource definitions (CRDs) remain on the cluster. You can use the following procedure to remove the remaining CRDs.
Removing the Operator and API CRDs also removes all resources that were defined by using them, including Knative services.
6.1. Removing OpenShift Serverless Operator and API CRDs Copy linkLink copied to clipboard!
Delete the Operator and API CRDs using the following procedure.
Prerequisites
-
Install the OpenShift CLI (
oc
). - You have cluster administrator permissions on OpenShift Container Platform, or you have cluster or dedicated administrator permissions on Red Hat OpenShift Service on AWS or OpenShift Dedicated.
- You have uninstalled Knative Serving and removed the OpenShift Serverless Operator.
Procedure
To delete the remaining OpenShift Serverless CRDs, enter the following command:
oc get crd -oname | grep 'knative.dev' | xargs oc delete
$ oc get crd -oname | grep 'knative.dev' | xargs oc delete
Copy to Clipboard Copied! Toggle word wrap Toggle overflow