From 72e2209e7f0098ebdabce9e223cdfb80311bd7b5 Mon Sep 17 00:00:00 2001 From: CaoShuFeng Date: Wed, 28 Mar 2018 05:56:03 +0800 Subject: [PATCH] clean up -a from doc (#7852) -a/--show-all has been set to true by default in 1.10 And it will be inert in 1.11 It's OK to remove them from the 1.10 doc. --- .../add-entries-to-pod-etc-hosts-with-host-aliases.md | 2 +- docs/concepts/workloads/controllers/cron-jobs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases.md b/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases.md index 4c1f9de481..d17c7b8043 100644 --- a/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases.md +++ b/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases.md @@ -53,7 +53,7 @@ This Pod can be started with the following commands: $ kubectl apply -f hostaliases-pod.yaml pod "hostaliases-pod" created -$ kubectl get pod -a -o=wide +$ kubectl get pod -o=wide NAME READY STATUS RESTARTS AGE IP NODE hostaliases-pod 0/1 Completed 0 6s 10.244.135.10 node3 ``` diff --git a/docs/concepts/workloads/controllers/cron-jobs.md b/docs/concepts/workloads/controllers/cron-jobs.md index 58f1664c65..bd5b70db16 100644 --- a/docs/concepts/workloads/controllers/cron-jobs.md +++ b/docs/concepts/workloads/controllers/cron-jobs.md @@ -95,7 +95,7 @@ your job name and pod name would be different. ```shell # Replace "hello-4111706356" with the job name in your system -$ pods=$(kubectl get pods -a --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name}) +$ pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items..metadata.name}) $ echo $pods hello-4111706356-o9qcm