$ oc delete knativeservings.operator.knative.dev knative-serving -n knative-serving
This guide provides details of how to remove 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. |
To uninstall Knative Serving, you must remove its custom resource and delete the knative-serving
namespace.
Delete the knative-serving
custom resource:
$ oc delete knativeservings.operator.knative.dev knative-serving -n knative-serving
After the command has completed and all pods have been removed from the knative-serving
namespace, delete the namespace:
$ oc delete namespace knative-serving
To uninstall Knative Eventing, you must remove its custom resource and delete the knative-eventing
namespace.
Delete the knative-eventing
custom resource:
$ oc delete knativeeventings.operator.knative.dev knative-eventing -n knative-eventing
After the command has completed and all pods have been removed from the knative-eventing
namespace, delete the namespace:
$ oc delete namespace knative-eventing
You can remove the OpenShift Serverless Operator from the host cluster by following the documentation on deleting Operators from a cluster.
After uninstalling the OpenShift Serverless, the Operator and API 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 using them, including Knative services. |