fix command in deployment.md (#12776)

pull/12796/head
Renze Yu 2019-02-22 19:40:13 +08:00 committed by Kubernetes Prow Robot
parent 00caa88ada
commit 224cebb90b
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ Suppose that you now want to update the nginx Pods to use the `nginx:1.9.1` imag
instead of the `nginx:1.7.9` image.
```shell
$ kubectl --record deployment.apps/nginx-deployment set image deployment.v1.apps/nginx-deployment
nginx=nginx:1.9.1 image updated
$ kubectl --record deployment.apps/nginx-deployment set image deployment.v1.apps/nginx-deployment nginx=nginx:1.9.1
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`: