Kubernetes 资源文档中的 M 和 Mi 有什么区别?

What are the difference between M and Mi in Kubernetes resources documentation?

阅读 Kubernetes 文档:

https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

128974848, 129e6, 129M, 123Mi

这里的M和Mi有什么区别?

如果我想申请128GB的RAM,多少Mi是正确的? 128000米?谢谢!

“MB”是 metric unit,其中 1 MB = 106 B 和 1 GB = 109 B .

“MiB”是基于幂 2 的单位,其中 1 MiB = 10242 B = 1048576 B.

因此,128 GB = 128 · 109 B = 122070.3 MiB。