cce-hpa-controller

cce-hpa-controller is a CCE-developed add-on, which can be used to flexibly scale in or out Deployments based on metrics such as CPU usage and memory usage.

After installing this add-on, you can create a CustomedHPA policy on the Workload Scaling tab page of the Auto Scaling page. For details, see Creating a CustomedHPA Policy for Workload Auto Scaling.

Main Functions

  • Scaling can be performed based on the percentage of the current number of pods.
  • The minimum scaling step can be set.
  • Different scaling operations can be performed based on the actual metric values.

Notes and Constraints

  • This add-on can be installed only in CCE clusters of v1.15 or later.
  • If the cce-hpa-controller version is earlier than 1.2.11, the prometheus add-on must be installed. If the cce-hpa-controller version is 1.2.11 or later, the add-ons that can provide metrics API, such as metrics-server and prometheus, must be installed. If Prometheus is used, you need to register Prometheus as the service that provides metrics API. For details, see Providing Resource Metrics.

Installing the Add-on

  1. Log in to the CCE console and access the cluster details page. Choose Add-ons in the navigation pane, locate cce-hpa-controller on the right, and click Install.
  2. Select Single or Custom for Add-on Specifications, and click Install.