New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a currentPodRequests field to NodeStatus #34073
Comments
@dchen1107 any thoughts? |
Issues go stale after 30d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Search for these keywords did not find anything
is:issue is:open node status resources requests current
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST
Hi all,
we propose to add a new field to the NodeStatus .
The name could be
currentPodRequests
orrequestedResources
orallocatedResources
.We are open to other name suggestions.
As the desired semantics, we propose this field to contain the sum of requested resources of all the currently running pods in that node.
The same computation is done every time one executes
kubectl describe node
.The resources table is computed every time from scratch.
For example
The code for that table is in
kubernetes/pkg/kubectl/describe.go
file indescribeNodeResource
function. It iterates over a collection that is accessed like this :nodeNonTerminatedPodsList, err := d.Core().Pods(namespace).List(api.ListOptions{FieldSelector: fieldSelector})
From the above example, the proposed field would look like this
Our use case for this field is the following:
We would like to understand the "utilization" of the nodes and we would like to understand how much resources have been allocated to running pods and how much is left.
We are interested in this "currentPodRequests" information at the node level as well as at the global cluster level.
We thought a new field in the NodeStatus would be suitable to contain that information .
We have created this issue to get any reactions to this suggestion. Has there been any similar discussions before? Any other issues or pr's anyone can point us. What is the reaction of the community to such a change? Any suggestions for implementation? Any pitfalls to avoid ?
Another alternative is to compute this information on demand from kube-state-metrics agent. This is the similar approach to the
kubectl describe nodes
implementation.If this issue and the proposal does not get a favorable reaction, we want to add this computation to kube-state-metrics.
Thanks for all the responses and the time spent in advance.
Kubernetes version (use
kubectl version
):Environment:
uname -a
):What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
The text was updated successfully, but these errors were encountered: