This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.第 13 章 卸载 OpenShift Logging
您可以从 OpenShift Container Platform 集群中删除 OpenShift Logging。
				您可以通过删除 ClusterLogging 自定义资源(CR)来停止日志聚合。在删除 CR 后,还有其他 OpenShift Logging 组件保留下来,您可以选择将其删除。
			
				删除 ClusterLogging CR 不会删除持久性卷声明(PVC)。要保留或删除剩余的 PVC、持久性卷(PV)和相关数据,您必须执行进一步操作。
			
先决条件
- 必须安装 OpenShift Logging 和 Elasticsearch。
 
流程
删除 OpenShift Logging:
使用 OpenShift Container Platform Web 控制台删除
ClusterLoggingCR:- 
								切换到 Administration 
Custom Resource Definitions 页面。  - 在 Custom Resource Definitions 页面上,点 ClusterLogging。
 - 在 Custom Resource Definition Details 页面中点 Instances。
 - 
								点击实例旁的 Options 菜单 
								
								 ,然后选择 Delete ClusterLogging。
							 
- 
								切换到 Administration 
 可选:删除自定义资源定义(CRD):
- 
								切换到 Administration 
Custom Resource Definitions 页面。  - 
								点击 ClusterLogForwarder 旁边的 Options 菜单 
								
								 ,然后选择 Delete Custom Resource Definition。
							 - 
								点击 ClusterLogging 旁边的 Options 菜单 
								
								 ,然后选择 Delete Custom Resource Definition。
							 - 
								点击 Elasticsearch 旁边的 Options 菜单 
								
								 ,然后选择 Delete Custom Resource Definition。
							 
- 
								切换到 Administration 
 可选:删除 Red Hat OpenShift Logging Operator 和 OpenShift Elasticsearch Operator:
- 
								切换到 Operators 
Installed Operators 页面。  - 
								点 Red Hat OpenShift Logging Operator 
								
								 旁边的 Options 菜单并选择 Uninstall Operator。
							 - 
								点击 OpenShift Elasticsearch Operator 
								
								 旁边的 Options 菜单并选择 Uninstall Operator。
							 
- 
								切换到 Operators 
 可选:删除 OpenShift Logging 和 Elasticsearch 项目。
- 
								切换到 Home 
Projects 页面。  - 
								点击 openshift-logging 项目 
								
								 旁的 Options 菜单,然后选择 Delete Project。
							 - 
								在对话框中输入 
openshift-logging并点 Delete 来确认删除。 点击 openshift-operators-redhat 项目
								 旁的 Options 菜单并选择 Delete Project。
							重要如果在此命名空间中安装了其他全局 Operator,请不要删除
openshift-operators-redhat项目。- 
								通过在对话框中输入 
openshift-operators-redhat并点 Delete 来确认删除。 
- 
								切换到 Home 
 - 要保留 PVC 以便与其他 pod 重复使用,保留标签或 PVC 名称,以便重新声明 PVC。
 可选:如果您不想保留 PVC,可以删除它们。
警告释放或删除 PVC 可能会导致 PV 删除并导致数据丢失。
- 
								切换到 Storage 
Persistent Volume Claims 页面。  - 
								点击每个 PVC 
								
								 旁边的 Options 菜单,然后选择 Delete Persistent Volume Claim。
							 - 如果要恢复存储空间,可以删除 PV。
 
- 
								切换到 Storage