第 10 章 Uninstalling Cluster Logging


You can remove cluster logging from your OpenShift Container Platform cluster.

10.1. Uninstalling cluster logging from OpenShift Container Platform

You can stop log aggregation by deleting the ClusterLogging custom resource (CR). However, after deleting the CR there are other cluster logging components that remain, which you can optionally remove.

Prerequisites

  • Cluster logging and Elasticsearch must be installed.

Procedure

To remove cluster logging:

  1. Use the OpenShift Container Platform web console to remove the ClusterLogging CR:

    1. Switch to the Administration Custom Resource Definitions page.
    2. On the Custom Resource Definitions page, click ClusterLogging.
    3. On the Custom Resource Definition Details page, click Instances.
    4. Click the Options menu kebab next to the instance and select Delete ClusterLogging.
  2. Optional: Delete the custom resource definitions (CRD):

    1. Switch to the Administration Custom Resource Definitions page.
    2. Click the Options menu kebab next to ClusterLogging and select Delete Custom Resource Definition.
    3. Click the Options menu kebab next to Elasticsearch and select Delete Custom Resource Definition.
    4. Click the Options menu kebab next to LogForwarding and select Delete Custom Resource Definition.
  3. Optional: Remove the Cluster Logging Operator and Elasticsearch Operator:

    1. Switch to the Operators Installed Operators page.
    2. Select the openshift-logging project.
    3. Click the Options menu kebab next to the Cluster Logging Operator and select Uninstall Operator.
    4. Select the openshift-operators-redhat project.
    5. Click the Options menu kebab next to the Elasticsearch Operator and select Uninstall Operator.
  4. Optional: Remove the Cluster Logging and Elasticsearch projects.

    1. Switch to the Home Projects page.
    2. Click the Options menu kebab next to the openshift-logging project and select Delete Project.
    3. Confirm the deletion by typing openshift-logging in the dialog box and click Delete.
    4. Click the Options menu kebab next to the openshift-operators-redhat project and select Delete Project.

      重要

      Do not delete the openshift-operators-redhat project if other global operators are installed in this namespace.

    5. Confirm the deletion by typing openshift-operators-redhat in the dialog box and click Delete.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.