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:
- Disable
hpaAutoApply
in the autoscaler configuration. - Restart the Smart Scaler Agent to prevent further updates. The Smart Scaler Agent does not persist state; it functions purely as an execution engine.
- 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:
- Disable
hpaAutoApply
in the autoscaler configuration. - Restart the Smart Scaler Agent to prevent further updates.
- Delete HPAs from the Kubernetes cluster for a given namespace and deployments.