Kubernetes/Requests and Limits, units

From Ever changing code
< Kubernetes
Revision as of 23:12, 7 December 2021 by Pio2pio (talk | contribs) (Created page with ";[https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu Meaning of CPU] Limits and requests for CPU resources are measured in cpu unit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Meaning of CPU

Limits and requests for CPU resources are measured in cpu units. One cpu, in Kubernetes, is equivalent to 1 vCPU/Core for cloud providers and 1 hyperthread on bare-metal Intel processors.


Meaning of memory

Limits and requests for memory are measured in bytes. You can express memory as a plain integer or as a fixed-point number using one of these suffixes: E, P, T, G, M, k, m (millis). You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki.

For example, the following represent roughly the same value: 128974848, 129e6, 129M, 128974848000m, 123Mi