Skip to content

Configure Horizontal Pod Autoscaler ​

Set up an HPA to automatically scale the number of Pods based on CPU or memory utilization.

Prerequisites

  • The target Deployment must be running.
  • Metrics Server must be deployed in the cluster.

Step 1. Open the Create HPA form ​

Select Service Discovery → Horizontal pod autoscalers from the left sidebar. Click the Create horizontal pod autoscaler button in the top right.


Step 2. Configure target and replica settings ​

FieldDescriptionExample
NameHPA namemy-app-hpa
NamespaceTarget namespacedefault
Target KindResource type to scaleDeployment
Target NameName of the resource to scalemy-app
Min ReplicasMinimum number of Pods to maintain2
Max ReplicasMaximum number of Pods allowed10

TIP

Set Min Replicas greater than 1 to ensure minimum availability.


Step 3. Configure scaling metrics ​

Click Add Metric to define the scaling criteria.

FieldDescriptionExample
Metric TypeType of metricResource
ResourceCPU or Memorycpu
Target TypeUtilization (%) or AverageValue (absolute)Utilization
Target ValueThreshold value70 (scale out when CPU exceeds 70%)

Multiple metrics can be configured simultaneously. The HPA uses the metric that requires the most Pods to determine scaling.


Step 4. Confirm creation ​

Click Create. Check the created HPA in the Horizontal pod autoscalers list.

  • Current / Min / Max: Current, minimum, and maximum replica counts
  • Targets: Current utilization vs. target value

Pods automatically scale up when load exceeds the threshold, and scale down as load decreases.


Next Steps ​

The New Standard for AI Infrastructure