From c613ebfdd354a59a8c33032d9cd4169b48910d70 Mon Sep 17 00:00:00 2001 From: Zoltan Burgermeiszter Date: Wed, 1 Nov 2017 16:59:28 +0000 Subject: [PATCH 1/2] Pod name fixed --- docs/tasks/administer-cluster/cpu-default-namespace.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/administer-cluster/cpu-default-namespace.md b/docs/tasks/administer-cluster/cpu-default-namespace.md index d446b436b5..445d2b6216 100644 --- a/docs/tasks/administer-cluster/cpu-default-namespace.md +++ b/docs/tasks/administer-cluster/cpu-default-namespace.md @@ -95,7 +95,7 @@ kubectl create -f https://k8s.io/docs/tasks/administer-cluster/cpu-defaults-pod- View the Pod specification: ``` -kubectl get pod cpu-limit-no-request --output=yaml --namespace=default-cpu-example +kubectl get pod default-cpu-demo-2 --output=yaml --namespace=default-cpu-example ``` The output shows that the Container's CPU request is set to match its CPU limit. From c7a87bf28cbd44bd1d04c3432188d3903363b80b Mon Sep 17 00:00:00 2001 From: Zoltan Burgermeiszter Date: Wed, 1 Nov 2017 17:09:05 +0000 Subject: [PATCH 2/2] kubectl get added to the example. --- docs/tasks/administer-cluster/cpu-default-namespace.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/tasks/administer-cluster/cpu-default-namespace.md b/docs/tasks/administer-cluster/cpu-default-namespace.md index 445d2b6216..845ba1ebbc 100644 --- a/docs/tasks/administer-cluster/cpu-default-namespace.md +++ b/docs/tasks/administer-cluster/cpu-default-namespace.md @@ -122,6 +122,12 @@ Create the Pod: kubectl create -f https://k8s.io/docs/tasks/administer-cluster/cpu-defaults-pod-3.yaml --namespace=default-cpu-example ``` +View the Pod specification: + +``` +kubectl get pod default-cpu-demo-3 --output=yaml --namespace=default-cpu-example +``` + The output shows that the Container's CPU request is set to the value specified in the Container's configuration file. The Container's CPU limit is set to 1 cpu, which is the default CPU limit for the namespace.