Kubernetes 是否报告了错误的内存容量?
Is Kubernetes reporting the incorrect memory capacity?
当我 ssh 进入我的盒子并 运行 以下内容时,我可以看到我有 26.8 GB 的内存。
cat /proc/meminfo | grep MemTotal | awk '{ print }'
26814064
那么为什么 Kube-UI 报告 27.46 GB(这比我预期的要高)..
和 kubectl describe nodes
报告 3.43 GB(这比我预期的要低得多)?
kubectl describe nodes gke-cluster-2-75125dbd-node-q9v6 | grep memory
memory: 26814064Ki
数字正确,您可能对单位感到困惑:
26814064 KiB(千字节)= 27,4576 GB(千兆字节)
当我 ssh 进入我的盒子并 运行 以下内容时,我可以看到我有 26.8 GB 的内存。
cat /proc/meminfo | grep MemTotal | awk '{ print }'
26814064
那么为什么 Kube-UI 报告 27.46 GB(这比我预期的要高)..
和 kubectl describe nodes
报告 3.43 GB(这比我预期的要低得多)?
kubectl describe nodes gke-cluster-2-75125dbd-node-q9v6 | grep memory
memory: 26814064Ki
数字正确,您可能对单位感到困惑:
26814064 KiB(千字节)= 27,4576 GB(千兆字节)