update set image command in a simpler way (#15817)

* update set image command in a simpler way

update set image command in a simpler way

* fix indentation

* Update deployment.md
This commit is contained in:
Melony QIN
2019-10-09 06:01:49 +01:00
committed by Kubernetes Prow Robot
parent 97480b2fce
commit 9cc26cfe15
@@ -158,6 +158,12 @@ Follow the steps given below to update your Deployment:
```shell ```shell
kubectl --record deployment.apps/nginx-deployment set image deployment.v1.apps/nginx-deployment nginx=nginx:1.9.1 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: The output is similar to this:
``` ```
deployment.apps/nginx-deployment image updated deployment.apps/nginx-deployment image updated