Rolling updates
Lesson 17 of 20 · Ops.Micro
Replace pods one at a time so the app never goes down during a release.
deployment/web web:1.0 desired 3 · ready 3
kubectl set image deployment/web web=web:2.0 changes the desired image. Watch the cluster: a new pod starts, and only when it is Running does an old one stop.
Check yourself
During a rolling update, when does an old pod stop?
Do it in the browser: a real DevOps tool, a short mission and instant feedback. No install.
Start this lesson — free