4.6. Removing OpenShift Serverless


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.

4.6.1. Uninstalling Knative Serving

To uninstall Knative Serving, you must remove its custom resource and delete the knative-serving namespace.

Procedure

  1. To remove Knative Serving, enter the following command:

    $ oc delete knativeservings.operator.knative.dev knative-serving -n knative-serving
  2. After the command has completed and all pods have been removed from the knative-serving namespace, delete the namespace by entering the following command:

    $ oc delete namespace knative-serving

4.6.2. Uninstalling Knative Eventing

To uninstall Knative Eventing, you must remove its custom resource and delete the knative-eventing namespace.

Procedure

  1. To remove Knative Eventing, enter the following command:

    $ oc delete knativeeventings.operator.knative.dev knative-eventing -n knative-eventing
  2. After the command has completed and all pods have been removed from the knative-eventing namespace, delete the namespace by entering the following command:

    $ oc delete namespace knative-eventing

4.6.3. Removing the OpenShift Serverless Operator

You can remove the OpenShift Serverless Operator from the host cluster by following the documentation on deleting Operators from a cluster.

4.6.4. Deleting OpenShift Serverless CRDs

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 using them, including Knative services.

Prerequisites

  • You have uninstalled Knative Serving and Knative Eventing and have removed the OpenShift Serverless Operator.

Procedure

  • Delete the remaining OpenShift Serverless CRDs:

    $ oc get crd -oname | grep 'knative.dev' | xargs oc delete
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.