Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-53428

HorizontalPodAutoscalers via console require CPU resource limit even though HPAs use requests for scaling

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.16
    • Management Console
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Creating a HorizontalPodAutoscaler  in Workloads->HorizontalPodAutoscalers allows you to create an HPA for a deployment that does not have any CPU limit. However, adding one via Workloads->Deployments->[Deployment]->Add HorizontalPodAutoscaler results in an error declaring that a limit is required.
      
      However, this required limit is *not* documented (documentation mentions only needing Requests), and the HPA uses Requests not limits for the scaling logic.
          

      Version-Release number of selected component (if applicable):

      Tested on 4.16
          

      How reproducible:

      Reproduced customer's situation in my lab.
          

      Steps to Reproduce:

          1. Create deployment without limits
          2. Click "Add HorizontalPodAutoscaler" from the "3-dots" menu on the right
          

      Actual results:

      "CPU resource limits must be set if you want to use CPU utilization. The HorizontalPodAutoscaler will not have CPU metrics until resource limits are set."
          

      Expected results:

      Since we do not use limits anyway, I would expect limits to not be required

      Additional info:

          

              jhadvig@redhat.com Jakub Hadvig
              rhn-support-stwalter Steven Walter
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: