$ oc delete interceptorroutes.http.keda.sh --all --all-namespaces
You can remove the custom metrics autoscaler from your OKD cluster. After removing the Custom Metrics Autoscaler Operator, remove other components associated with the Operator to avoid potential issues.
|
Delete the |
You can remove the custom metrics autoscaler from your OKD cluster.
The Custom Metrics Autoscaler Operator must be installed.
Optional: If you enabled the HTTP add-on, use the OpenShift CLI (oc) to perform the following steps:
Delete the InterceptorRoute resources by running the following command:
$ oc delete interceptorroutes.http.keda.sh --all --all-namespaces
If the command reports that the resource type was not found, the HTTP add-on custom resource definition is not installed or not configured. Continue with the next step.
Delete any ScaledObject CRs:
$ oc delete scaledobjects --all --all-namespaces
In the OKD web console, click Ecosystem → Installed Operators.
Switch to the openshift-keda project.
Remove the KedaController custom resource. Deleting this resource also removes the HTTP add-on components when the add-on is enabled.
Find the CustomMetricsAutoscaler Operator and click the KedaController tab.
Find the custom resource, and then click Delete KedaController.
Click Uninstall.
Remove the Custom Metrics Autoscaler Operator:
Click Ecosystem → Installed Operators.
Find the CustomMetricsAutoscaler Operator and click the Options menu and select Uninstall Operator.
Click Uninstall.
Optional: Use the OpenShift CLI to remove the custom metrics autoscaler components:
Delete the custom metrics autoscaler CRDs:
clustertriggerauthentications.keda.sh
kedacontrollers.keda.sh
scaledjobs.keda.sh
scaledobjects.keda.sh
triggerauthentications.keda.sh
$ oc delete crd clustertriggerauthentications.keda.sh kedacontrollers.keda.sh scaledjobs.keda.sh scaledobjects.keda.sh triggerauthentications.keda.sh
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.
List any custom metrics autoscaler cluster roles:
$ oc get clusterrole | grep keda.sh
Delete the listed custom metrics autoscaler cluster roles. For example:
$ oc delete clusterrole.keda.sh-v1alpha1-admin
List any custom metrics autoscaler cluster role bindings:
$ oc get clusterrolebinding | grep keda.sh
Delete the listed custom metrics autoscaler cluster role bindings. For example:
$ oc delete clusterrolebinding.keda.sh-v1alpha1-admin
Delete the custom metrics autoscaler project:
$ oc delete project openshift-keda
Delete the Cluster Metric Autoscaler Operator:
$ oc delete operator/openshift-custom-metrics-autoscaler-operator.openshift-keda