By guy1234
Is this how much of a value has been consumed? If so, shouldn’t the memory request value be higher since its requested value is smaller?
Node: pool-majaaaaaa-aaaa
Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits AGE
--------- ---- ------------ ---------- --------------- ------------- ---
kube-system coredns-84c79f5fb4-8f2g6 100m (10%) 0 (0%) 70Mi (4%) 170Mi (10%) 35d
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I understood these to mean the total usage of the nodes allocateable memory. If you see (10%) that mean’s that pod is using 10% of the nodes allocatable memory for workloads.
Hello,
The output looks good actually. If a Kubernetes node where a Pod is running has enough resources available, a container could try to use more resources than its request for that resource specifies.
However, a container is not allowed to use more than its resource limit.
The bellow is an example from the official Kubernetes documentation:
If you set a memory request of 256 MiB for a container, and that container is in a Pod scheduled to a Node with 8GiB of memory and no other Pods, then the container can try to use more RAM.
If you set a memory limit of 4GiB for that Container, the kubelet (and container runtime) enforce the limit. The runtime prevents the container from using more than the configured resource limit. For example: when a process in the container tries to consume more than the limit of memory, the system kernel terminates the process that attempted the allocation, with an out of memory (OOM) error.
For more information on managing resources, you could take a look at the documentation here:
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.