1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [HPA (HorizontalPodAutoscaler)](<https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler>)

  

Category: Kubernetes 

# HPA (HorizontalPodAutoscaler)

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is HPA (HorizontalPodAutoscaler)?

 

HPA (HorizontalPodAutoscaler): Automatically scales the replica count of a workload up or down based on metrics like CPU utilisation or custom metrics. A HorizontalPodAutoscaler, or HPA, changes the number of pods in a Kubernetes Deployment based on load. When average CPU usage goes above a target, it adds pods; when load drops, it removes them again.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about HPA (HorizontalPodAutoscaler)

  

### How is HPA (HorizontalPodAutoscaler) used in practice?

 

It keeps an application responsive during busy periods without paying for peak capacity all day. It can also scale on memory or custom metrics, such as requests per second or queue length.

    

### What should you keep in mind with HPA (HorizontalPodAutoscaler)?

 

An HPA needs resource requests on the containers, because CPU usage is measured as a percentage of the request. Set sensible minimum and maximum replica counts, so a bug cannot scale you to a hundred pods. Remember that the database does not scale with it. More web pods mean more database connections, so check that your database can handle the maximum.

    

### What does an example of HPA (HorizontalPodAutoscaler) look like?

 

```
apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: web spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: web minReplicas: 2 maxReplicas: 10 metrics: - type: Resource resource: name: cpu target: { type: Utilization, averageUtilization: 70 }
```

 

## At a glance

   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Kubernetes terms

 

- [emptyDir](<https://delaparra-services.nl/knowledge-hub/emptydir>) 
- [exec](<https://delaparra-services.nl/knowledge-hub/exec>) 
- [get](<https://delaparra-services.nl/knowledge-hub/get>) 
- [Ingress](<https://delaparra-services.nl/knowledge-hub/ingress>) 
- [Job](<https://delaparra-services.nl/knowledge-hub/job>) 
- [label](<https://delaparra-services.nl/knowledge-hub/label>)

 

[All terms starting with H](<https://delaparra-services.nl/knowledge-hub#letter-h>)

 

## Skills

 

- ### Kubernetes Manifest Generator

 

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

 [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) 
- ### Helm Chart Scaffolding

 

Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.

 [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) 
- ### GitOps Workflow

 

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

 [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) 
- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler)
