Swap memory-demo by cpu-demo in the assign-cpu-resource page (#9376)
* Swap memory-demo by cpu-demo * Make the number match
This commit is contained in:
@@ -108,7 +108,7 @@ resources:
|
|||||||
Use `kubectl top` to fetch the metrics for the pod:
|
Use `kubectl top` to fetch the metrics for the pod:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl top pod memory-demo
|
kubectl top pod cpu-demo --namespace=cpu-example
|
||||||
```
|
```
|
||||||
|
|
||||||
The output shows that the Pod is using 974 millicpu, which is just a bit less than
|
The output shows that the Pod is using 974 millicpu, which is just a bit less than
|
||||||
@@ -116,7 +116,7 @@ the limit of 1 cpu specified in the Pod's configuration file.
|
|||||||
|
|
||||||
```
|
```
|
||||||
NAME CPU(cores) MEMORY(bytes)
|
NAME CPU(cores) MEMORY(bytes)
|
||||||
memory-demo 794m <something>
|
cpu-demo 974m <something>
|
||||||
```
|
```
|
||||||
|
|
||||||
Recall that by setting `-cpu "2"`, you configured the Container to attempt to use 2 cpus.
|
Recall that by setting `-cpu "2"`, you configured the Container to attempt to use 2 cpus.
|
||||||
|
|||||||
Reference in New Issue
Block a user