May 2018
Intermediate to advanced
554 pages
13h 51m
English
Let's see how resource requests/limits affect resource management. A preceding burstable YAML configuration declares both requests and limits by a different threshold as follows:
|
Type of resource definition |
Resource name |
Value |
Description |
|
requests |
CPU |
0.1 |
At least 10% of 1CPU core |
|
Memory |
10Mi |
At least 10 Mbytes of memory |
|
|
limits |
CPU |
0.5 |
Maximum 50% of 1 CPU core |
|
Memory |
300Mi |
Maximum 300 Mbytes of memory |
For the CPU resources, acceptable value expressions are either cores (0.1, 0.2 ... 1.0, 2.0) or millicpu (100 m, 200 m ... 1000 m, 2000 m). 1000 m is equivalent to 1.0 core. For example, if a Kubernetes node has 2 cores CPU (or 1 core with hyperthreading), there are a total ...
Read now
Unlock full access