From 3aab039ac47bc890e9318fd404b2fcc174d7b21d Mon Sep 17 00:00:00 2001 From: Luzhenxing Date: Sat, 2 Nov 2019 12:31:40 +0800 Subject: [PATCH] change kubectl get deployment output (#17351) --- .../en/docs/reference/kubectl/docker-cli-to-kubectl.md | 4 ++-- .../port-forward-access-application-cluster.md | 4 ++-- .../tasks/administer-cluster/namespaces-walkthrough.md | 8 ++++---- content/en/docs/tasks/administer-cluster/namespaces.md | 8 ++++---- .../horizontal-pod-autoscale-walkthrough.md | 8 ++++---- content/en/docs/tutorials/hello-minikube.md | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md b/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md index 56d5536439..b86ee27042 100644 --- a/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md +++ b/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md @@ -257,8 +257,8 @@ kubectl: kubectl get deployment nginx-app ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -nginx-app 1 1 1 1 2m +NAME READY UP-TO-DATE AVAILABLE AGE +nginx-app 1/1 1 1 2m ``` ```shell diff --git a/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md b/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md index 1bb365b34f..4a3b201ff3 100644 --- a/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md +++ b/content/en/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md @@ -49,8 +49,8 @@ for database debugging. The output displays that the deployment was created: - NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE - redis-master 1 1 1 1 55s + NAME READY UP-TO-DATE AVAILABLE AGE + redis-master 1/1 1 1 55s View the replicaset status using: diff --git a/content/en/docs/tasks/administer-cluster/namespaces-walkthrough.md b/content/en/docs/tasks/administer-cluster/namespaces-walkthrough.md index e92e8ca476..bd136e3ae2 100644 --- a/content/en/docs/tasks/administer-cluster/namespaces-walkthrough.md +++ b/content/en/docs/tasks/administer-cluster/namespaces-walkthrough.md @@ -235,8 +235,8 @@ If you want to obtain the old behavior, use `--generator=run/v1` to create repli kubectl get deployment ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -snowflake 2 2 2 2 2m +NAME READY UP-TO-DATE AVAILABLE AGE +snowflake 2/2 2 2 2m ``` ```shell @@ -271,8 +271,8 @@ kubectl run cattle --image=k8s.gcr.io/serve_hostname --replicas=5 kubectl get deployment ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -cattle 5 5 5 5 10s +NAME READY UP-TO-DATE AVAILABLE AGE +cattle 5/5 5 5 10s ``` ```shell diff --git a/content/en/docs/tasks/administer-cluster/namespaces.md b/content/en/docs/tasks/administer-cluster/namespaces.md index 3c2c974b8e..6f20c26ef1 100644 --- a/content/en/docs/tasks/administer-cluster/namespaces.md +++ b/content/en/docs/tasks/administer-cluster/namespaces.md @@ -268,8 +268,8 @@ If you want to obtain the old behavior, use `--generator=run/v1` to create repli kubectl get deployment ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -snowflake 2 2 2 2 2m +NAME READY UP-TO-DATE AVAILABLE AGE +snowflake 2/2 2 2 2m ``` ```shell kubectl get pods -l run=snowflake @@ -303,8 +303,8 @@ kubectl run cattle --image=k8s.gcr.io/serve_hostname --replicas=5 kubectl get deployment ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -cattle 5 5 5 5 10s +NAME READY UP-TO-DATE AVAILABLE AGE +cattle 5/5 5 5 10s ``` ```shell diff --git a/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md b/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md index 4e2f109bcb..51f2e16d47 100644 --- a/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md +++ b/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md @@ -135,8 +135,8 @@ As a result, the deployment was resized to 7 replicas: kubectl get deployment php-apache ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -php-apache 7 7 7 7 19m +NAME READY UP-TO-DATE AVAILABLE AGE +php-apache 7/7 7 7 19m ``` {{< note >}} @@ -166,8 +166,8 @@ php-apache Deployment/php-apache/scale 0% / 50% 1 10 1 kubectl get deployment php-apache ``` ``` -NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE -php-apache 1 1 1 1 27m +NAME READY UP-TO-DATE AVAILABLE AGE +php-apache 1/1 1 1 27m ``` Here CPU utilization dropped to 0, and so HPA autoscaled the number of replicas back down to 1. diff --git a/content/en/docs/tutorials/hello-minikube.md b/content/en/docs/tutorials/hello-minikube.md index e4a5e70451..f6e80b8935 100644 --- a/content/en/docs/tutorials/hello-minikube.md +++ b/content/en/docs/tutorials/hello-minikube.md @@ -90,8 +90,8 @@ Pod runs a Container based on the provided Docker image. Output: ```shell - NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE - hello-node 1 1 1 1 1m + NAME READY UP-TO-DATE AVAILABLE AGE + hello-node 1/1 1 1 1m ``` 3. View the Pod: