Can the Horizontal Pod Autoscaler scale based on CPU limits?

Solution Verified - Updated -

Issue

  • Is there a way to scale up new pods based on a percentage of a pod's CPU limit using the Horizontal Pod Autoscaler (HPA)? For example: if a pod in a deployment had a CPU limit of 500m, would it then be possible to have the HPA scale up new pods at 50% of this value or 250m?

Environment

  • OpenShift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content