From 3d01d17b694263f9a8cca8ec0fdb46ebc903e21e Mon Sep 17 00:00:00 2001 From: Ben Chelli Date: Wed, 4 Jul 2018 03:02:21 -0400 Subject: [PATCH] Swap memory-demo by cpu-demo in the assign-cpu-resource page (#9376) * Swap memory-demo by cpu-demo * Make the number match --- .../docs/tasks/configure-pod-container/assign-cpu-resource.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.