Skip to content

Commit a1d9197

Browse files
authored
Merge pull request #41349 from mburke5678/BZ1947814-vpa-uninstall-cleanup
BZ1947814:VPA Operator uninstall doesn't document manual cleanups
2 parents 0989424 + 9e05db1 commit a1d9197

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
@@ -13,13 +13,15 @@ You can remove the Vertical Pod Autoscaler Operator (VPA) from your {product-tit
1313
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.
1414
====
1515

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

1820
* The Vertical Pod Autoscaler Operator must be installed.
1921
2022
.Procedure
2123

22-
. In the {product-title} web console, click *Operators* *Installed Operators*.
24+
. In the {product-title} web console, click *Operators* -> *Installed Operators*.
2325

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

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

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

0 commit comments

Comments
 (0)