diff --git a/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md b/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md index a45fe770b4..6c9769ec40 100644 --- a/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md +++ b/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md @@ -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 +cpu-demo 974m ``` Recall that by setting `-cpu "2"`, you configured the Container to attempt to use 2 cpus.