This replication controller does not have any containers with a CPU request set. Autoscaling will not work without a CPU request

Solution Verified - Updated -

Issue

  • pod autoscaling with following syntax:
oc autoscale dc/<my-deployment> --min 1 --max 3 --cpu-percent=80
  • Below error is seen :
This replication controller does not have any containers with a CPU request set. Autoscaling will not work without a CPU request.

Environment

  • Openshift Container Platform
    • 3.3

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