Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Melony QIN authored Aug 12, 2019
1 parent f1fdb25 commit 3b08826
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions content/en/docs/concepts/workloads/controllers/deployment.md
Original file line number Diff line number Diff line change
@@ -158,22 +158,24 @@ Follow the steps given below to update your Deployment:
```shell
kubectl --record deployment.apps/nginx-deployment set image deployment.v1.apps/nginx-deployment nginx=nginx:1.9.1
```
or simply use the following command :
```shell
kubectl set image deployment/nginx-deployment nginx=nginx:1.91 --record
```
The output is similar to this:
or simply use the following command :

```shell
kubectl set image deployment/nginx-deployment nginx=nginx:1.91 --record
```

The output is similar to this:
```
deployment.apps/nginx-deployment image updated
```

Alternatively, you can `edit` the Deployment and change `.spec.template.spec.containers[0].image` from `nginx:1.7.9` to `nginx:1.9.1`:
Alternatively, you can `edit` the Deployment and change `.spec.template.spec.containers[0].image` from `nginx:1.7.9` to `nginx:1.9.1`:

```shell
kubectl edit deployment.v1.apps/nginx-deployment
```

The output is similar to this:
The output is similar to this:
```
deployment.apps/nginx-deployment edited
```

0 comments on commit 3b08826

Please sign in to comment.