Unexpected values reported for CPU resources via downward API in OpenShift Container Platform 4

Solution Verified - Updated -

Issue

  • According to Information available via resourceFieldRef the .resourceFieldRef.resource=limits.cpu or .resourceFieldRef.resource=request.cpu value references should provide information about CPU requests and limits. However, if CPU requests/limits are set lower than 1 core, then the values are not correctly reflected in the Downward API. Meaning the CPU request of 100m in the container would always result in a value of 1 in the Downward API. Is this expected behavior and is there a way to change that?

Environment

  • Red Hat OpenShift Container Platform 4

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