mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-24 11:57:35 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Display extended resources in node allocated resources **What this PR does / why we need it**: Displays ~~opaque integer~~ [extended] resources in node allocated resources of command `kubectl describe node`. This will give users more info about node ~~OIR~~ [extended resources] consumption. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # This is a partially fix of #44271. **Special notes for your reviewer**: This PR - only displays allocated ~~OIR~~ [extended resources] details of node, it doesn't display ~~OIR~~ [extended resources] requests/limits for each pod because it's hard to organize format. I tried to print ~~OIR~~ [extended resources] requests/limits of pods, but some strings have been eaten when a line is too long (the output has been separated into two lines by terminal). I think it's because a `\t` blank can't be show in two lines. - ~~uses `OIR-foo` instead of `pod.alpha.kubernetes.io/opaque-int-resource-foo` for short.~~ - doesn't display the percentage of ~~OIR~~ [extended resources] usage because I think the percentage is not so meaningful. - displays each ~~OIR~~ [extended resources] in single rows to be clear. UPDATE: Example with default namespace resource: ``` Non-terminated Pods: (1 in total) Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits --------- ---- ------------ ---------- --------------- ------------- default rc-nginx-single-krp84 1 (33%) 1 (33%) 512Mi (6%) 512Mi (6%) Allocated resources: (Total limits may be over 100 percent, i.e., overcommitted.) Resource Requests Limits -------- -------- ------ cpu 1 (33%) 1 (33%) memory 512Mi (6%) 512Mi (6%) kubernetes.io/widgets 111 0 ``` /cc @ConnorDoyle @soltysh ref #44181 **Release note**: ```release-note Display requests/limits of extended resources in node allocated resources. ```