Skip to content

Commit

Permalink
Swap memory-demo by cpu-demo in the assign-cpu-resource page (kuberne…
Browse files Browse the repository at this point in the history
…tes#9376)

* Swap memory-demo by cpu-demo

* Make the number match
  • Loading branch information
bchelli authored and k8s-ci-robot committed Jul 4, 2018
1 parent 3dd65e4 commit 3d01d17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ 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
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.
Expand Down

0 comments on commit 3d01d17

Please sign in to comment.