From 244f802a33fb24fba26b6a396c33f2a1626e91c4 Mon Sep 17 00:00:00 2001 From: aelejota Date: Thu, 7 Nov 2019 02:56:44 +0100 Subject: [PATCH] Update deployment.md (#17328) * Update deployment.md Modified kubectl get deployment command outputs to adapt them to the new output format introduced in v1.11 * Update deployment.md Fix a typo --- .../concepts/workloads/controllers/deployment.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/en/docs/concepts/workloads/controllers/deployment.md b/content/en/docs/concepts/workloads/controllers/deployment.md index 975131b996..3208a2f5aa 100644 --- a/content/en/docs/concepts/workloads/controllers/deployment.md +++ b/content/en/docs/concepts/workloads/controllers/deployment.md @@ -84,8 +84,8 @@ In this example: 2. Run `kubectl get deployments` to check if the Deployment was created. If the Deployment is still being created, the output is similar to the following: ```shell - NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE - nginx-deployment 3 0 0 0 1s + NAME READY UP-TO-DATE AVAILABLE AGE + nginx-deployment 0/3 0 0 1s ``` When you inspect the Deployments in your cluster, the following fields are displayed: @@ -106,8 +106,8 @@ In this example: 4. Run the `kubectl get deployments` again a few seconds later. The output is similar to this: ```shell - NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE - nginx-deployment 3 3 3 3 18s + NAME READY UP-TO-DATE AVAILABLE AGE + nginx-deployment 3/3 3 3 18s ``` Notice that the Deployment has created all three replicas, and all replicas are up-to-date (they contain the latest Pod template) and available. @@ -200,8 +200,8 @@ Get more details on your updated Deployment: * After the rollout succeeds, you can view the Deployment by running `kubectl get deployments`. The output is similar to this: ``` - NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE - nginx-deployment 3 3 3 3 36s + NAME READY UP-TO-DATE AVAILABLE AGE + nginx-deployment 3/3 3 3 36s ``` * Run `kubectl get rs` to see that the Deployment updated the Pods by creating a new ReplicaSet and scaling it @@ -535,8 +535,8 @@ Follow the steps given below to rollback the Deployment from the current version The output is similar to this: ``` - NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE - nginx-deployment 3 3 3 3 30m + NAME READY UP-TO-DATE AVAILABLE AGE + nginx-deployment 3/3 3 3 30m ``` 3. Get the description of the Deployment: ```shell