Refer to these instructions to delete an installed cluster autoscaler.

Requirements

This task assumes you have installed the cluster autoscaler on a TKG cluster.

Delete Cluster Autoscaler Using Kubectl

  1. To delete the cluster autoscaler using Kubectl, use the following command.
    kubectl delete -f autoscaler.yaml
    Note: The name autoscaler.yaml is the name you used when you deployed the autoscaler package. If you used a different name, update the command accordingly. See Install Cluster Autoscaler Using Kubectl.

Delete Cluster Autoscaler Using the Tanzu CLI

  1. To delete the cluster autoscaler using the Tanzu CLI, use the following command.
    tanzu package installed delete -n tkg-system cluster-autoscaler-pkgi