Permalink
Browse files

Update deployment.md (#12301)

All resources must be specified before image changes: deployment.apps/nginx-deployment . So I reorganised the command order.
  • Loading branch information...
juniorjbn authored and k8s-ci-robot committed Jan 29, 2019
1 parent 134a391 commit eab93ae93293f101921eefd6d30dca24406c61b3
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/en/docs/concepts/workloads/controllers/deployment.md
@@ -171,8 +171,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 set image deployment.v1.apps/nginx-deployment nginx=nginx:1.9.1 --record
deployment.apps/nginx-deployment 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`:

0 comments on commit eab93ae

Please sign in to comment.