Skip to main content
Version: 2.15.0

Roll Back HPA

This topic describes how to roll back and clean up HPA changes after disabling Smart Scaler.

Roll back an Existing HPA

To roll back an existing HPA that was updated by Smart Scaler:

  1. Disable hpaAutoApply in the autoscaler configuration.
  2. Restart the Smart Scaler Agent to prevent further updates. The Smart Scaler Agent does not persist state; it functions purely as an execution engine.
  3. To fully revert, reapply the original HPA manifests with your preferred metric sources.

Roll Back a Smart Scaler-Created HPA

Smart Scaler creates an HPA if it did not exist in the cluster. To roll back the Smart Scaler-created HPA and revert to the initial state:

  1. Disable hpaAutoApply in the autoscaler configuration.
  2. Restart the Smart Scaler Agent to prevent further updates.
  3. Delete HPAs from the Kubernetes cluster for a given namespace and deployments.