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
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
c247cda3e2
commit
244f802a33
@@ -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:
|
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
|
```shell
|
||||||
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
||||||
nginx-deployment 3 0 0 0 1s
|
nginx-deployment 0/3 0 0 1s
|
||||||
```
|
```
|
||||||
When you inspect the Deployments in your cluster, the following fields are displayed:
|
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:
|
4. Run the `kubectl get deployments` again a few seconds later. The output is similar to this:
|
||||||
```shell
|
```shell
|
||||||
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
||||||
nginx-deployment 3 3 3 3 18s
|
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.
|
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`.
|
* After the rollout succeeds, you can view the Deployment by running `kubectl get deployments`.
|
||||||
The output is similar to this:
|
The output is similar to this:
|
||||||
```
|
```
|
||||||
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
||||||
nginx-deployment 3 3 3 3 36s
|
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
|
* 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:
|
The output is similar to this:
|
||||||
```
|
```
|
||||||
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
||||||
nginx-deployment 3 3 3 3 30m
|
nginx-deployment 3/3 3 3 30m
|
||||||
```
|
```
|
||||||
3. Get the description of the Deployment:
|
3. Get the description of the Deployment:
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Reference in New Issue
Block a user