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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.