Skip to content

Commit d3b2e9a

Browse files
authored
Merge pull request #95646 from theashiot/OBSDOCS-1779-standalone
OBSDOCS-1779: Uninstalling logging
2 parents 0cc7903 + d3837c3 commit d3b2e9a

16 files changed

+370
-1
lines changed

_topic_maps/_topic_map.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ Topics:
5858
#- Name: Using affinity and anti-afinity configuration to control logging pod placement
5959
# File: logging-affinity-and-anti-afinity
6060
#---
61-
61+
---
62+
Name: Uninstalling logging
63+
Dir: uninstalling
64+
Distros: openshift-logging
65+
Topics:
66+
- Name: Uninstalling logging
67+
File: uninstalling-logging
68+
#---
6269
#Name: Configuring your Logging deployment
6370
#Dir: config
6471
#Distros: openshift-logging

images/kebab.png

329 Bytes
Loading
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-28
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-logging-pvcs-by-using-the-cli_{context}"]
9+
= Deleting logging PVCs by using the CLI
10+
11+
You can delete persistent volume claims (PVCs) if you do not want to reuse them in other installations of LokiStack by using the {oc-first}.
12+
13+
.Prerequisites
14+
* You have administrator permissions.
15+
* You installed the {oc-first}.
16+
17+
.Procedure
18+
19+
* Delete logging PVCs by running the following command:
20+
+
21+
[source,treminal]
22+
----
23+
$ oc -n openshift-logging delete pvc -l app.kubernetes.io/name=lokistack
24+
----
25+
26+
.Next steps
27+
* https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html-single/storage/index#reclaim-manual_understanding-persistent-storage[Reclaiming a persistent volume manually]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-05
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-logging-pvcs-by-using-the-web-console_{context}"]
9+
= Deleting logging PVCs by using the web console
10+
11+
You can delete persistent volume claims (PVCs) if you do not want to reuse them in other installations of LokiStack, by using the web console.
12+
13+
.Prerequisites
14+
* You have administrator permissions.
15+
* You have access to the {product-title} web console.
16+
17+
.Procedure
18+
19+
. In the web console, go to the *Storage* -> *Persistent Volume Claims* page.
20+
21+
. Click {kebab} next to each PVC, and select *Delete Persistent Volume Claim*.
22+
23+
.Next steps
24+
* https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html-single/storage/index#reclaim-manual_understanding-persistent-storage[Reclaiming a persistent volume manually]
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-05
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-the-cluster-logging-operator-by-using-the-cli_{context}"]
9+
= Deleting the {clo} by using the CLI
10+
11+
Delete the {clo} by using the {oc-first}.
12+
13+
.Prerequisites
14+
15+
* You have administrator permissions.
16+
* You installed the {oc-first}.
17+
18+
.Procedure
19+
20+
. Delete the `ClusterLogForwarder` custom resource (CR) by running the following command:
21+
+
22+
[source,terminal]
23+
----
24+
$ oc delete ClusterLogForwarder instance -n openshift-logging
25+
----
26+
+
27+
Change `instance` to the name of your `ClusterLogForwarder` CR if you have used a different name.
28+
29+
. Delete the service account by running the following commands:
30+
+
31+
[source,terminal]
32+
----
33+
$ oc adm policy remove-cluster-role-from-user lokistack-tenant-logs -z logging-collector -n openshift-logging
34+
----
35+
+
36+
[source,terminal]
37+
----
38+
$ oc adm policy remove-cluster-role-from-user collect-application-logs -z logging-collector -n openshift-logging
39+
----
40+
+
41+
[source,terminal]
42+
----
43+
$ oc adm policy remove-cluster-role-from-user collect-infrastructure-logs -z logging-collector -n openshift-logging
44+
----
45+
+
46+
[source,terminal]
47+
----
48+
$ oc adm policy remove-cluster-role-from-user collect-audit-logs -z logging-collector -n openshift-logging
49+
----
50+
+
51+
[source,terminal]
52+
----
53+
$ oc adm policy remove-cluster-role-from-user logging-collector-logs-writer -z logging-collector -n openshift-logging
54+
----
55+
+
56+
[source,terminal]
57+
----
58+
$ oc delete serviceaccount logging-collector -n openshift-logging
59+
----
60+
61+
. Delete the `LogFileMetricExporter` resource if you have deployed it by running the following command:
62+
+
63+
[source,terminal]
64+
----
65+
$ oc -n openshift-logging delete LogFileMetricExporter --all
66+
----
67+
68+
. Check the current version of the subscribed {clo} in the `currentCSV` field by running the following command:
69+
+
70+
[source,terminal,options="nowrap"]
71+
----
72+
$ oc get csv -n openshift-logging | grep cluster-logging
73+
----
74+
+
75+
.Example output
76+
----
77+
cluster-logging.v6.2.4 Red Hat OpenShift Logging 6.2.4 cluster-logging.v6.2.3 Succeeded
78+
----
79+
+
80+
Note the first field in the output, it indicates the `currentCSV` value.
81+
82+
. Delete the subscription associated with the {clo} by running the following command:
83+
+
84+
[source,terminal]
85+
----
86+
$ oc delete subscriptions.operators.coreos.com cluster-logging -n openshift-logging
87+
----
88+
89+
. Delete the `CSV` object for {clo} in the target namespace using the `currentCSV` value obtained from the earlier step:
90+
+
91+
[source,terminal]
92+
----
93+
$ oc delete csv cluster-logging.v6.2.4 -n openshift-logging
94+
----
95+
96+
. Uninstall the {clo} by running the following command:
97+
+
98+
[source,terminal,subs="+quotes"]
99+
----
100+
$ oc delete OperatorGroup __<name>__ -n openshift-logging
101+
----
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
5+
:_newdoc-version: 2.18.4
6+
:_template-generated: 2025-07-05
7+
:_mod-docs-content-type: PROCEDURE
8+
9+
[id="deleting-the-cluster-logging-operator-by-using-the-web-console_{context}"]
10+
= Deleting the {clo} by using the web console
11+
12+
Delete the {clo} by using the {product-title} web console.
13+
14+
.Prerequisites
15+
* You have administrator permissions.
16+
* You have access to the {product-title} web console.
17+
18+
.Procedure
19+
20+
. In the web console, go to *Operators* -> *Installed Operators*.
21+
22+
. Find *{clo}* in the list and click {kebab} next to it, then click *Uninstall Operator*.
23+
24+
. In the pop-up select *Delete all operand instances for this operator* and click *Uninstall*.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-05
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-the-loki-operator-by-using-the-cli_{context}"]
9+
= Deleting the {loki-op} by using the CLI
10+
11+
Delete the {loki-op} by using the {oc-first}.
12+
13+
.Prerequisites
14+
15+
* You have administrator permissions.
16+
* You installed the {oc-first}.
17+
18+
.Procedure
19+
20+
. Delete the `LokiStack` custom resource (CR) by running the following command:
21+
+
22+
[source,terminal,subs=+quotes]
23+
----
24+
$ oc delete LokiStack logging-loki -n openshift-logging
25+
----
26+
+
27+
Substitute `logging-loki` with the name of your `LokiStack` CR if you have used a different name.
28+
29+
. Check the current version of the subscribed {loki-op} in the `currentCSV` field by running the following command:
30+
+
31+
[source,terminal,options="nowrap"]
32+
----
33+
$ oc get csv -n openshift-operators-redhat | grep loki-operator
34+
----
35+
+
36+
.Example output
37+
----
38+
loki-operator.v6.2.4 Loki Operator 6.2.4 loki-operator.v6.2.3 Succeeded
39+
----
40+
+
41+
Note the first field in the output, it indicates the `currentCSV` value.
42+
43+
. Delete the subscription associated with the {loki-op} by running the following command:
44+
+
45+
[source,terminal,subs="+quotes"]
46+
----
47+
$ oc delete subscriptions.operators.coreos.com loki-operator -n openshift-operators-redhat
48+
----
49+
50+
. Delete the `CSV` object for {loki-op} in the target namespace using the `currentCSV` value obtained from the earlier step:
51+
+
52+
[source,terminal]
53+
----
54+
$ oc delete csv loki-operator.v6.2.4 -n openshift-operators-redhat
55+
----
56+
57+
. Uninstall the {loki-op} by running the following command:
58+
+
59+
[source,terminal]
60+
----
61+
$ oc delete OperatorGroup <name> -n openshift-operators-redhat
62+
----
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-05
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-the-loki-operator-by-using-the-web-console_{context}"]
9+
= Deleting the {loki-op} by using the web console
10+
11+
Delete the {loki-op} by using the {product-title} web console.
12+
13+
.Prerequisites
14+
* You have administrator permissions.
15+
* You have access to the {product-title} web console.
16+
17+
.Procedure
18+
19+
. In the web console, go to *Operators* -> *Installed Operators*.
20+
21+
. Find *{loki-op}* in the list and click {kebab} next to it, then click *Uninstall Operator*.
22+
23+
. In the pop-up, select *Delete all operand instances for this operator* and click *Uninstall*.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-14
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-the-uiplugin-by-using-the-cli_{context}"]
9+
= Deleting the UIPlugin by using the CLI
10+
11+
Delete the `UIPlugin` by using the {oc-first}.
12+
13+
.Prerequisites
14+
* You have administrator permissions.
15+
* You installed the {oc-first}.
16+
17+
.Procedure
18+
19+
* Delete the `UIPlugin` by running the following command:
20+
+
21+
[source,terminal,subs="+quotes"]
22+
----
23+
$ oc delete uiplugin logging
24+
----
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Module included in the following assemblies:
2+
// * uninstalling/uninstalling-logging.adoc
3+
4+
:_newdoc-version: 2.18.4
5+
:_template-generated: 2025-07-05
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id="deleting-the-uiplugin-by-using-the-web-console_{context}"]
9+
= Deleting the UIPlugin by using the web console
10+
11+
Delete the `UIPlugin` plugin by using the {product-title} web console.
12+
13+
.Prerequisites
14+
* You have administrator permissions.
15+
* You have access to the {product-title} web console.
16+
17+
.Procedure
18+
19+
. In the web console, go to *Operators* -> *Installed Operators*.
20+
21+
. Click *{coo-full}* from the *Installed Operators* list and go to the *UIPlugin* tab.
22+
23+
. Click {kebab} for the UIPlugin *logging* entry and select *Delete UIPlugin*.

0 commit comments

Comments
 (0)