Description of problem: Compute resources of containers cannot be calculated as the master configured ratio, because ClusterResourceOverride is not set correctly in master-config file, Version-Release number of selected component (if applicable): dev-preview-stg openshift v3.2.0.44 kubernetes v1.2.0-36-g4a3f9c5 etcd 2.2.5 How reproducible: Alwaysdev-preview-stg Steps to Reproduce: 1. Check the master-config.yaml file in dev-preview-stg env, then check the ClusterResourceOverride Actual results: <------snip-------> kubernetesMasterConfig: admissionConfig: pluginConfig: ClusterResourceConfig: configuration: apiVersion: v1 cpuRequestToLimitPercent: '6' kind: ClusterResourceOverrideConfig limitCPUToMemoryPercent: '200' memoryRequestToLimitPercent: '60' <------snip-------> Expected results: ClusterResourceOverride in master-config.yaml should be set like below: <------snip-------> kubernetesMasterConfig: admissionConfig: pluginConfig: ClusterResourceOverride: configuration: apiVersion: v1 kind: ClusterResourceOverrideConfig limitCPUToMemoryPercent: 200 cpuRequestToLimitPercent: 6 memoryRequestToLimitPercent: 60 <------snip------->
This seems to be just about specifying the values as numbers rather than as strings - we probably just need to skip the quotes around the numeric values.
Also, the name of the plugin in the actual configuration on master (STG) is ClusterResourceConfig, whereas based on the expectation (as per QE) it should be ClusterResourceOverride.
Create a pod with resources like below: resources: limits: memory: "600Mi" cpu: "400m" requests: memory: "100Mi" cpu: "300m" Then the memory/cpu requests/limits of the pod will be calculated based on the override ratio: # oc describe pod pod-limit-memory Limits: cpu: 1170m memory: 600Mi Requests: cpu: 70m memory: 360Mi Move to verified.