Roadmap › Kubernetes (K8s) & AKS › Module: Deploying and Operating
Lessons in this course (15)
12. Deployment strategies
Intermediate★ Must knowLesson 12 of 15
| Strategy | How | Trade-off |
|---|---|---|
| Rolling update (default) | Replace pods gradually (maxSurge, maxUnavailable) | Zero downtime; old and new run side by side briefly — keep APIs/DB backward compatible |
| Recreate | Kill all old, then start new | Downtime; for apps that can't run two versions |
| Blue-green | Two full environments; switch the Service selector/ingress | Instant switch and rollback; double resources |
| Canary | Send a small % of traffic to the new version, then increase | Low-risk; needs ingress/mesh traffic splitting (Argo Rollouts, Flagger, Gateway API weights) |
| A/B | Route by header/user segment | Experiments |