-
Notifications
You must be signed in to change notification settings - Fork 953
The resources.limits.memory unit is automatically converted. Why cannot the unit be displayed as configured? #1729
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. If a SIG or subproject determines this is a relevant issue, they will accept it 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. |
I think this helps us to understand what is the actual limit , if it shows in mentioned unit , the value will only show till particular decimal places. |
/sig storage |
but there has been mention of why Mi value usage created some issue like : kubernetes/kubernetes#128684 /sig api-machinery |
/remove-sig storage node api-machinery /transfer kubectl IMO, the choice of conversion function (for display) is one made by the |
Can you provide a reproduction of what you are talking about? Do you mean on the pod definition if you create deployment using kubectl apply or create? Or possibly describe? |
I also want to know where the code for the conversion function is. Can you tell me |
When kubectl is used to create a deployment, its resources.limits.memory is set to 1237.3Mi. However, when kubectl is used to view the deployment, 1297403084800m is displayed. |
What happened?
When resources.limits.memory is set to 1237.3Mi, the actual pod is 1297403084800 m by running the kubectl command, which is difficult to understand.
What did you expect to happen?
Resources.limits.memory can be displayed based on the configured value and unit.
How can we reproduce it (as minimally and precisely as possible)?
Set resources.limits.memory to 1237.3Mi and run the kubectl command to check the value.
Anything else we need to know?
No response
Kubernetes version
1.31
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: