Skip to content

Commit 4d3b7a0

Browse files
author
Tim Bannister
committed
Suggest scaling deployment to 3 before rollout of update
1 parent f85277d commit 4d3b7a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/en/docs/concepts/cluster-administration/manage-deployment.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,14 @@ kubectl create deployment my-nginx --image=nginx:1.14.2
433433
deployment.apps/my-nginx created
434434
```
435435

436+
with 3 replicas (so the old and new revisions can coexist):
437+
```shell
438+
kubectl scale deployment my-nginx --current-replicas=1 --replicas=3
439+
```
440+
```
441+
deployment.apps/my-nginx scaled
442+
```
443+
436444
To update to version 1.16.1, simply change `.spec.template.spec.containers[0].image` from `nginx:1.14.2` to `nginx:1.16.1`, with the kubectl commands we learned above.
437445
438446
```shell

0 commit comments

Comments
 (0)