1.7. Deleting old resources
1.7.1. Deleting the ClusterLogging instance リンクのコピーリンクがクリップボードにコピーされました!
Delete the ClusterLogging instance because it is no longer needed in Logging 6.x.
Prerequisites
- You have administrator permissions.
-
You installed the OpenShift CLI (
oc).
Procedure
Delete the ClusterLogging instance.
$ oc delete clusterlogging <CR name> -n <namespace>
Verification
Verify that no collector pods are running by running the following command:
$ oc get pods -l component=collector -n <namespace>Verify that no
clusterLogForwarder.logging.openshift.iocustom resource (CR) exists by running the following command:$ oc get clusterlogforwarders.logging.openshift.io -A
If any clusterLogForwarder.logging.openshift.io CR is listed, it belongs to the old 5.x Logging stack, and must be removed. Create a backup of the CRs and delete them before deploying any clusterLogForwarder.observability.openshift.io CR with the new APIversion.
1.7.2. Deleting Red Hat OpenShift Logging 5 CRD リンクのコピーリンクがクリップボードにコピーされました!
Delete Red Hat OpenShift Logging 5 custom resource definitions (CRD) when upgrading to Logging 6.
Prerequisites
- You have administrator permissions.
-
You installed the OpenShift CLI (
oc).
Procedure
Delete
clusterlogforwarders.logging.openshift.ioandclusterloggings.logging.openshift.ioCRD by running the following command:$ oc delete crd clusterloggings.logging.openshift.io clusterlogforwarders.logging.openshift.io
1.7.3. Uninstalling Elasticsearch リンクのコピーリンクがクリップボードにコピーされました!
You can uninstall Elasticsearch by using the OpenShift Container Platform web console. Uninstall Elasticsearch only if it is not used for by component such as Jaeger, Service Mesh, or Kiali.
Prerequisites
- You have administrator permissions.
-
If you have not already removed the Red Hat OpenShift Logging Operator and related resources, you must remove references to Elasticsearch from the
ClusterLoggingcustom resource.
Procedure
-
Go to the Administration
Custom Resource Definitions page, and click Elasticsearch. - On the Custom Resource Definition Details page, click Instances.
-
Click the Options menu
next to the instance, and then click Delete Elasticsearch.
-
Go to the Administration
Custom Resource Definitions page. -
Click the Options menu
next to Elasticsearch, and select Delete Custom Resource Definition.
-
Go to the Operators
Installed Operators page. -
Click the Options menu
next to the OpenShift Elasticsearch Operator, and then click Uninstall Operator.
Optional: Delete the
openshift-operators-redhatproject.重要Do not delete the
openshift-operators-redhatproject if other global Operators are installed in this namespace.-
Go to the Home
Projects page. -
Click the Options menu
next to the openshift-operators-redhat project, and then click Delete Project.
-
Confirm the deletion by typing
openshift-operators-redhatin the dialog box, and then click Delete.
-
Go to the Home