[root@ose3-master training]# oc describe limits foo-limits -n foo Name: foo-limits Namespace: foo Type Resource Min Max Request Limit Limit/Request ---- -------- --- --- ------- ----- ------------- Pod cpu 10m 500m - - - Pod memory 5Mi 750Mi - - - Container cpu 10m 500m 100m 100m - Container memory 5Mi 750Mi 100Mi 100Mi - It isn't really clear what these columns mean. Here's the JSON that created this: { "kind": "LimitRange", "apiVersion": "v1", "metadata": { "name": "limits", "creationTimestamp": null }, "spec": { "limits": [ { "type": "Pod", "max": { "cpu": "500m", "memory": "750Mi" }, "min": { "cpu": "10m", "memory": "5Mi" } }, { "type": "Container", "max": { "cpu": "500m", "memory": "750Mi" }, "min": { "cpu": "10m", "memory": "5Mi" }, "default": { "cpu": "100m", "memory": "100Mi" } } ] } } The CLI output doesn't mention "default", but seems to put these values under "request" *AND* ??? "limit"... but what is "limit / request"? It's very confusing. The 3.0.2 output did have a "default" column.
Maybe something like the following: [root@ose3-master training]# oc describe limits foo-limits -n foo Name: foo-limits Namespace: foo The amount of compute resources per pod must conform to the following: Resource Min Max Burst (Limit/Request) -------- --- --- ----------------------- cpu 10m 500m 10 memory 5Mi 750Mi 10 The amount of compute resources per container must conform to the following: Resource Min Max Burst (Limit/Request) -------- --- --- ----------------------- cpu 10m 500m 10 memory 5Mi 750Mi 10 If a container does not specify a compute resource, it will default as follows: Resource Request Limit -------- ------- ----- cpu 100m 100m memory 100Mi 100Mi
I am lowering priority as its not a release-blocker, but agree we can look to improve the output as an update to upstream Kube.
Fix in upstream Kube here: https://github.com/kubernetes/kubernetes/pull/17255 It aligns display with what we show in the web console right now.
See cherry-pick for Origin: https://github.com/openshift/origin/pull/5905
I'll check the bug after the fix is merged.
The PR is still not merged yet, so move its status to "MODIFIED"
The fix are there now. Checked on version, openshift v3.1.1.904 kubernetes v1.2.0-alpha.7-703-gbc4550d etcd 2.2.5 $ oc describe limits limits -n default Name: limits Namespace: default Type Resource Min Max Default Request Default Limit Max Limit/Request Ratio ---- -------- --- --- --------------- ------------- ----------------------- Pod cpu 10m 500m - - - Pod memory 5Mi 750Mi - - - Container cpu 10m 500m 100m 100m - Container memory 5Mi 750Mi 100Mi 100Mi - Once the bug moved to ON_QA, we can move it to verified.
Move to verified per comment #8