{
    "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler",
    "locale": "en",
    "title": "HPA (HorizontalPodAutoscaler): Knowledge hub | DeLaParra Services",
    "description": "Automatically scales the replica count of a workload up or down based on metrics like CPU utilisation or custom metrics.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler",
        "nl": "https://delaparra-services.nl/nl/kennisbank/hpa-horizontalpodautoscaler"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.md",
        "json": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.csv",
            "encodingFormat": "text/csv",
            "name": "hpa-horizontalpodautoscaler.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.json",
            "encodingFormat": "application/json",
            "name": "hpa-horizontalpodautoscaler.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.md",
            "encodingFormat": "text/markdown",
            "name": "hpa-horizontalpodautoscaler.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.pdf",
            "encodingFormat": "application/pdf",
            "name": "hpa-horizontalpodautoscaler.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.zip",
            "encodingFormat": "application/zip",
            "name": "hpa-horizontalpodautoscaler.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler/skills.zip",
            "encodingFormat": "application/zip",
            "name": "hpa-horizontalpodautoscaler-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [HPA (HorizontalPodAutoscaler)](<https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler>)\n\n  \n\nCategory: Kubernetes \n\n# HPA (HorizontalPodAutoscaler)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is HPA (HorizontalPodAutoscaler)?\n\n \n\nHPA (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.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about HPA (HorizontalPodAutoscaler)\n\n  \n\n### How is HPA (HorizontalPodAutoscaler) used in practice?\n\n \n\nIt 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.\n\n    \n\n### What should you keep in mind with HPA (HorizontalPodAutoscaler)?\n\n \n\nAn 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.\n\n    \n\n### What does an example of HPA (HorizontalPodAutoscaler) look like?\n\n \n\n```\napiVersion: 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 }\n```\n\n \n\n## At a glance\n\n   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Kubernetes terms\n\n \n\n- [emptyDir](<https://delaparra-services.nl/knowledge-hub/emptydir>) \n- [exec](<https://delaparra-services.nl/knowledge-hub/exec>) \n- [get](<https://delaparra-services.nl/knowledge-hub/get>) \n- [Ingress](<https://delaparra-services.nl/knowledge-hub/ingress>) \n- [Job](<https://delaparra-services.nl/knowledge-hub/job>) \n- [label](<https://delaparra-services.nl/knowledge-hub/label>)\n\n \n\n[All terms starting with H](<https://delaparra-services.nl/knowledge-hub#letter-h>)\n\n \n\n## Skills\n\n \n\n- ### Kubernetes Manifest Generator\n\n \n\nCreate 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.\n\n [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) \n- ### Helm Chart Scaffolding\n\n \n\nDesign, 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.\n\n [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) \n- ### GitOps Workflow\n\n \n\nImplement 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.\n\n [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) \n- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck 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.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler",
                "name": "HPA (HorizontalPodAutoscaler): Knowledge hub | DeLaParra Services",
                "description": "Automatically scales the replica count of a workload up or down based on metrics like CPU utilisation or custom metrics.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#term",
                    "name": "HPA (HorizontalPodAutoscaler)",
                    "description": "Automatically scales the replica count of a workload up or down based on metrics like CPU utilisation or custom metrics.",
                    "termCode": "hpa-horizontalpodautoscaler",
                    "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler",
                    "inLanguage": "en",
                    "keywords": "Kubernetes",
                    "dateModified": "2026-11-25T17:46:27+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is HPA (HorizontalPodAutoscaler)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is HPA (HorizontalPodAutoscaler) used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with HPA (HorizontalPodAutoscaler)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of HPA (HorizontalPodAutoscaler) look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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 }"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/k8s-manifest-generator#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/helm-chart-scaffolding#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/gitops-workflow#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "HPA (HorizontalPodAutoscaler)"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#dataset",
                "name": "HPA (HorizontalPodAutoscaler)",
                "description": "Automatically scales the replica count of a workload up or down based on metrics like CPU utilisation or custom metrics.",
                "url": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler",
                "identifier": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Kubernetes",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:27+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "hpa-horizontalpodautoscaler.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "hpa-horizontalpodautoscaler.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "hpa-horizontalpodautoscaler.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "hpa-horizontalpodautoscaler.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "hpa-horizontalpodautoscaler.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "hpa-horizontalpodautoscaler-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/hpa-horizontalpodautoscaler/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}