简体   繁体   中英

Is Kubernetes reporting the incorrect memory capacity?

When I ssh in to my box and run the following, I can see I have 26.8 GB of ram.

cat /proc/meminfo | grep MemTotal | awk '{ print $2 }'
26814064

So why does Kube-UI report 27.46 GB (which is higher than I expected)..

酷比

and kubectl describe nodes report 3.43 GB (which is much lower that I expected)?

kubectl describe nodes gke-cluster-2-75125dbd-node-q9v6 | grep memory
 memory:        26814064Ki

The numbers are correct, you are probably confused with the units:

26814064 KiB (Kibibyte) = 27,4576 GB (Gigabyte)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM