Swap memory-demo by cpu-demo in the assign-cpu-resource page (#9376)

* Swap memory-demo by cpu-demo

* Make the number match
pull/9377/head
Ben Chelli 2018-07-04 03:02:21 -04:00 committed by k8s-ci-robot
parent 3dd65e4e95
commit 3d01d17b69
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ resources:
Use `kubectl top` to fetch the metrics for the pod:
```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
@ -116,7 +116,7 @@ the limit of 1 cpu specified in the Pod's configuration file.
```
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.