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
Kubelet should report available resources for node #4441
Comments
I would vote for 2. I also want to get to a state where a pod will always let me know the resources it could consume or always apply same defaults. Sent from my iPhone
|
In general, Kubelet should report node status. See #4135 for more discussion. I'm happy with Kubelet reporting total/nominally available resources in status, also. If you want to implement this soon, we can discuss what the API should be exactly. As discussed in https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/resources.md, usage data should not be in node status, however. We're working on a stats collector which will provide that info #4057. |
@derekwaynecarr Please file a separate issue if you want to discuss defaulting and/or auto-sizing pod resource requests/limits. |
Fixed in #5030 |
Currently Node 'resources' field is optional. We may have few issues here:
Few options to avoid these above issues:
Either option 1 or 2 might need migration tool to patch existing nodes in the running cluster.
If we think sheduler will be smart enough to reject pod creation based on the node resource limits at some point, I feel option 2 will be fool proof and gives better experience to the user.
Please let me know your thoughts on this: @bgrant0607 @ddysher @abhgupta
The text was updated successfully, but these errors were encountered: