Update deployment.md (#17023)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
fe74e3f318
commit
452d5822d2
@@ -158,24 +158,24 @@ 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:
|
or simply use the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl set image deployment/nginx-deployment nginx=nginx:1.91 --record
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
```shell
|
||||||
kubectl edit deployment.v1.apps/nginx-deployment
|
kubectl edit deployment.v1.apps/nginx-deployment
|
||||||
```
|
```
|
||||||
|
|
||||||
The output is similar to this:
|
The output is similar to this:
|
||||||
```
|
```
|
||||||
deployment.apps/nginx-deployment edited
|
deployment.apps/nginx-deployment edited
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user