Skip to content

Commit 3d01d17

Browse files
bchellik8s-ci-robot
authored andcommitted
Swap memory-demo by cpu-demo in the assign-cpu-resource page (kubernetes#9376)
* Swap memory-demo by cpu-demo * Make the number match
1 parent 3dd65e4 commit 3d01d17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ resources:
108108
Use `kubectl top` to fetch the metrics for the pod:
109109

110110
```shell
111-
kubectl top pod memory-demo
111+
kubectl top pod cpu-demo --namespace=cpu-example
112112
```
113113

114114
The output shows that the Pod is using 974 millicpu, which is just a bit less than
115115
the limit of 1 cpu specified in the Pod's configuration file.
116116

117117
```
118118
NAME CPU(cores) MEMORY(bytes)
119-
memory-demo 794m <something>
119+
cpu-demo 974m <something>
120120
```
121121

122122
Recall that by setting `-cpu "2"`, you configured the Container to attempt to use 2 cpus.

0 commit comments

Comments
 (0)