Unexpected values reported for CPU resources via downward API in OpenShift Container Platform 4
Issue
- According to Information available via resourceFieldRef the
.resourceFieldRef.resource=limits.cpuor.resourceFieldRef.resource=request.cpuvalue 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 of100min 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.