-
Notifications
You must be signed in to change notification settings - Fork 40.6k
kubectl top pods
filter by the node
#131896
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
Comments
This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/assign |
@ardaguclu is going to reach out. to sig-instrumentation because they are in charge of what data is available in the Metrics API (the API that is communicated with to get the information displayed in If not, we will close this issue and you can watch kubernetes/kubectl#1706 to be closed and that will simplify your bash command by allowing you to grep the output easily. |
/transfer kubernetes |
/sig instrumentation |
@kubernetes/sig-instrumentation-leads we need your input in here. There is an attempt #130525 that manually fetches the node of the pod name and links the node name to the output of retrieved from metrics API. Is this correct?. Is there any similar discussions about adding a node name field in metrics API for "top pods"?. |
Uh oh!
There was an error while loading. Please reload this page.
What would you like to be added:
I would like to be able to see resource consumption for all pods running on the specific node only.
Currently this command is failing with:
Why is this needed:
This is useful when investigating node resource pressure. Let's say that I run
kubectl top nodes --sort-by='memory'
and see that one of my nodes is on 95% memory usage. The next logical thing to do is to find what are the most memory intensive pods.I can run
kubectl describe node <name>
, this will give me list of pods and their memory requests and limits but not the usage.Currently this can be fetched by the following overly-complicated command:
Related issues:
kubectl top pod
output kubectl#1706field-selector
option for kubectl top pod kubectl#923The text was updated successfully, but these errors were encountered: