-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
VM Resource Allocation #11909
Comments
/cc @lyarwood |
That's odd, it should be
This came up recently in slack [1] with the answer being to use the
Hopefully this helps! [1] https://kubernetes.slack.com/archives/C0163DT0R8X/p1713817450084649 |
Hello, I have a question regarding the configuration of VM resource requests and limits.
Consider the following scenario: I am using a c.4 instance type with a VM specification (where many fields have been omitted, and no other requests or limits are defined). This setup should allocate 4 CPUs and 31.2Gi of memory. However, the output from kubectl describe presents a strange value:
According to the K8s documentation, the suffix used for the memory unit here is invalid. It appears to represent millibytes, leading to some inconsistencies. Using the VirtualMachineInstancetype, I am unable to accurately retreive the actual consumption of the VMs. Additionally, after deployment, there is an added overhead to memory usage, and limits are not configured. Although I executed a
stress
cmd within the VM and it adhered to the resource limits specified, I remain uncertain about this configuration.It is crucial for me to understand how many VMs can be allocated on the cluster before it run out of resources. Therefore, I need to determine the resources assigned to each VM.
When I manually set requests and limits for a VM, the values and suffixes appear correct, and the node section labeled 'Allocated resources' reflects accurate consumption.
My question is: Is it safe to manually configure the resource section in the spec as follows?
VirtualMachineInstancetype and VirtualMachine specs:
Could you please advise on the safety and reliability of manually setting these resource specifications?
Environment:
kubectl version
): v1.28.6uname -a
):5.15.0-106-genericThe text was updated successfully, but these errors were encountered: