Skip to content

Commit 13328e2

Browse files
authored
Merge pull request #53447 from mburke5678/OCPBUGS-2936-vpa-uninstall
OCPBUGS-2936: VPA uninstall instructions incomplete/complicated
2 parents a17081f + 1c941b4 commit 13328e2

File tree

1 file changed

+15
-76
lines changed

1 file changed

+15
-76
lines changed

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

Lines changed: 15 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ You can remove the Vertical Pod Autoscaler Operator (VPA) from your {product-tit
1010

1111
[NOTE]
1212
====
13-
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.
13+
You can remove a specific VPA CR by 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.
16+
After removing the VPA Operator, it is recommended that you remove the other components associated with the Operator to avoid potential issues.
1717

1818
.Prerequisites
1919

@@ -25,110 +25,49 @@ After removing the VPA Operator, it is recommended that you remove other compone
2525

2626
. Switch to the *openshift-vertical-pod-autoscaler* project.
2727

28-
. Find the *VerticalPodAutoscaler* Operator and click the Options menu. Select *Uninstall Operator*.
28+
. For the *VerticalPodAutoscaler* Operator, click the Options menu {kebab} and select *Uninstall Operator*.
2929

3030
. Optional: To remove all operands associated with the Operator, in the dialog box, select *Delete all operand instances for this operator* checkbox.
3131

3232
. Click *Uninstall*.
3333

3434
. Optional: Use the OpenShift CLI to remove the VPA components:
3535

36-
.. Delete the VPA mutating webhook configuration:
36+
.. Delete the VPA namespace:
3737
+
3838
[source,terminal]
3939
----
40-
$ oc delete mutatingwebhookconfigurations/vpa-webhook-config
40+
$ oc delete namespace openshift-vertical-pod-autoscaler
4141
----
4242

43-
.. List any VPA custom resources:
43+
.. Delete the VPA custom resource definition (CRD) objects:
4444
+
4545
[source,terminal]
4646
----
47-
$ oc get verticalpodautoscalercheckpoints.autoscaling.k8s.io,verticalpodautoscalercontrollers.autoscaling.openshift.io,verticalpodautoscalers.autoscaling.k8s.io -o wide --all-namespaces
47+
$ oc delete crd verticalpodautoscalercheckpoints.autoscaling.k8s.io
4848
----
4949
+
50-
.Example output
5150
[source,terminal]
5251
----
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-
...
52+
$ oc delete crd verticalpodautoscalercontrollers.autoscaling.openshift.io
9653
----
97-
98-
.. Delete the listed VPA CRDs:
9954
+
10055
[source,terminal]
10156
----
102-
$ oc delete crd verticalpodautoscalercheckpoints.autoscaling.k8s.io verticalpodautoscalercontrollers.autoscaling.openshift.io verticalpodautoscalers.autoscaling.k8s.io
57+
$ oc delete crd verticalpodautoscalers.autoscaling.k8s.io
10358
----
10459
+
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:
60+
Deleting the CRDs removes the associated roles, cluster roles, and role bindings.
10861
+
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-
----
62+
[NOTE]
63+
====
64+
This action removes from the cluster all user-created VPA CRs. If you re-install the VPA, you must create these objects again.
65+
====
12866

12967
.. Delete the VPA Operator:
13068
+
13169
[source,terminal]
13270
----
13371
$ oc delete operator/vertical-pod-autoscaler.openshift-vertical-pod-autoscaler
13472
----
73+

0 commit comments

Comments
 (0)