Skip to content

Commit 9e05db1

Browse files
committed
BZ1947814:VPA Operator uninstall doesn't document manual cleanups
1 parent 41c6252 commit 9e05db1

File tree

1 file changed

+105
-1
lines changed

1 file changed

+105
-1
lines changed

modules/nodes-pods-vertical-autoscaler-uninstall.adoc

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ You can remove the Vertical Pod Autoscaler Operator (VPA) from your {product-tit
1212
You can remove a specific VPA using the `oc delete vpa <vpa-name>` command. The same actions apply for resource requests as uninstalling the vertical pod autoscaler.
1313
====
1414

15+
After removing the VPA Operator, it is recommended that you remove other components associated with the Operator to avoid potential issues.
16+
1517
.Prerequisites
1618

1719
* The Vertical Pod Autoscaler Operator must be installed.
1820

1921
.Procedure
2022

21-
. In the {product-title} web console, click *Operators* *Installed Operators*.
23+
. In the {product-title} web console, click *Operators* -> *Installed Operators*.
2224

2325
. Switch to the *openshift-vertical-pod-autoscaler* project.
2426

@@ -27,3 +29,105 @@ You can remove a specific VPA using the `oc delete vpa <vpa-name>` command. The
2729
. Optional: To remove all operands associated with the Operator, in the dialog box, select *Delete all operand instances for this operator* checkbox.
2830

2931
. Click *Uninstall*.
32+
33+
. Optional: Use the OpenShift CLI to remove the VPA components:
34+
35+
.. Delete the VPA mutating webhook configuration:
36+
+
37+
[source,terminal]
38+
----
39+
$ oc delete mutatingwebhookconfigurations/vpa-webhook-config
40+
----
41+
42+
.. List any VPA custom resources:
43+
+
44+
[source,terminal]
45+
----
46+
$ oc get verticalpodautoscalercheckpoints.autoscaling.k8s.io,verticalpodautoscalercontrollers.autoscaling.openshift.io,verticalpodautoscalers.autoscaling.k8s.io -o wide --all-namespaces
47+
----
48+
+
49+
.Example output
50+
[source,terminal]
51+
----
52+
NAMESPACE NAME AGE
53+
my-project verticalpodautoscalercheckpoint.autoscaling.k8s.io/vpa-recommender-httpd 5m46s
54+
55+
NAMESPACE NAME AGE
56+
openshift-vertical-pod-autoscaler verticalpodautoscalercontroller.autoscaling.openshift.io/default 11m
57+
58+
NAMESPACE NAME MODE CPU MEM PROVIDED AGE
59+
my-project verticalpodautoscaler.autoscaling.k8s.io/vpa-recommender Auto 93m 262144k True 9m15s
60+
----
61+
62+
.. Delete the listed VPA custom resources. For example:
63+
+
64+
[source,terminal]
65+
----
66+
$ oc delete verticalpodautoscalercheckpoint.autoscaling.k8s.io/vpa-recommender-httpd -n my-project
67+
----
68+
+
69+
[source,terminal]
70+
----
71+
$ oc delete verticalpodautoscalercontroller.autoscaling.openshift.io/default -n openshift-vertical-pod-autoscaler
72+
----
73+
+
74+
[source,terminal]
75+
----
76+
$ oc delete verticalpodautoscaler.autoscaling.k8s.io/vpa-recommender -n my-project
77+
----
78+
79+
.. List any VPA custom resource definitions (CRDs):
80+
+
81+
[source,terminal]
82+
----
83+
$ oc get crd
84+
----
85+
+
86+
.Example output
87+
[source,terminal]
88+
----
89+
NAME CREATED AT
90+
...
91+
verticalpodautoscalercheckpoints.autoscaling.k8s.io 2022-02-07T14:09:20Z
92+
verticalpodautoscalercontrollers.autoscaling.openshift.io 2022-02-07T14:09:20Z
93+
verticalpodautoscalers.autoscaling.k8s.io 2022-02-07T14:09:20Z
94+
...
95+
----
96+
97+
.. Delete the listed VPA CRDs:
98+
+
99+
[source,terminal]
100+
----
101+
$ oc delete crd verticalpodautoscalercheckpoints.autoscaling.k8s.io verticalpodautoscalercontrollers.autoscaling.openshift.io verticalpodautoscalers.autoscaling.k8s.io
102+
----
103+
+
104+
Deleting the CRDs removes the associated roles, cluster roles, and role bindings. However, there might be a few cluster roles that must be manually deleted.
105+
106+
.. List any VPA cluster roles:
107+
+
108+
[source,terminal]
109+
----
110+
$ oc get clusterrole | grep openshift-vertical-pod-autoscaler
111+
----
112+
+
113+
.Example output
114+
[source,terminal]
115+
----
116+
openshift-vertical-pod-autoscaler-6896f-admin 2022-02-02T15:29:55Z
117+
openshift-vertical-pod-autoscaler-6896f-edit 2022-02-02T15:29:55Z
118+
openshift-vertical-pod-autoscaler-6896f-view 2022-02-02T15:29:55Z
119+
----
120+
121+
.. Delete the listed VPA cluster roles. For example:
122+
+
123+
[source,terminal]
124+
----
125+
$ oc delete clusterrole openshift-vertical-pod-autoscaler-6896f-admin openshift-vertical-pod-autoscaler-6896f-edit openshift-vertical-pod-autoscaler-6896f-view
126+
----
127+
128+
.. Delete the VPA Operator:
129+
+
130+
[source,terminal]
131+
----
132+
$ oc delete operator/vertical-pod-autoscaler.openshift-vertical-pod-autoscaler
133+
----

0 commit comments

Comments
 (0)