-
Notifications
You must be signed in to change notification settings - Fork 216
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
chore: Display CPU and Memory on nodepools, with -o wide you also get limits! #1055
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ROunofF The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @ROunofF! |
Hi @ROunofF. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
This is a cool idea and something that we are actively thinking about for v1 as we are going through our API design! What's the reason that you think that this would be generally useful to all users? I'm curious how you are using this. I saw that you mentioned in #1054 that you felt limited by the additionalPrinterColumns, so I'm curious in your ideal world what you would like the printer columns to look like for Realistically, if you want an easy out to get this printed on your side right now, you can try using |
Nodeclaims: I'm happy with the current output didn't need anything that isn't included yet. Nodepools: As the PR did, it's interesting to see the current provisioned "total" of CPU and Memory as well as weight so that I view the cluster current provisioned state vs the nodepools I have configured. I'm using an on-demand pool and bursting into a spot pool as well as specific pool for some applications (think gpu/custom resources). For the limit, I was more interested in the % usage however the additionalPrinterColumns doesn't allow calculation, and the other improvement I would have made was to output using a unit so that number wouldn't be longer than 3(or 4?) digits 5.xy - 500 + units ( 19846992Ki would be printed as 18.9Gi) My initial Sketch was something like this :
awsnodetemplates: This one is pretty static for me, so I rarely look at it. Looking at the possibilities here, the list of resolved security groups, subnets and AMI-ids could be of interest but the full details will be hard to represent. |
Clearly a very nice output. We have a custom node controller at work and we are moving bricks to karpenter and evaluating, people like very much the % use output in kubectl, if we can have the same on nodepool it would be great |
This is super interesting. If we didn't have the percentage output, would that be enough? I'm trying to avoid adding a status field only for the purpose of having that value output in printer columns. The other thing: Do we need the same thing for ephemeral storage or do we think that everyone largely just cares about CPU and memory? What if we printed the number of nodes that were tied to the NodePool? Would you want that printed as part of the printer columns? What if we had details on the number of disruptions that are currently allowed for the NodePool through the budgets? Would you want this printed in the printer columns? What about the current number of disrupted nodes? There's going to be a lot of discussion on this once the v1 API RFC comes out, but I'm glad that we're starting the discussion on this now. |
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
Yes, the percentage was just my initial idea, and it's easier to use in some kind of monitoring tool. But as humain, we can still figure out head-room with the real count... |
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
/assign @jonathan-innis |
I personally think that both values and percentage is important, when it combined it immediately helps to get overall picture. Like when you use
This is definitely what is missing here (especially when combined with #1160)
This could part of The ideal sketch from me is something like this:
|
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
Fixes #1054
Description: Added information already available so it's visible in the kubectl get
Output :
How was this change tested?: make build && make test && kubectl apply -f karpenter.sh_nodepools.yaml
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.