Roadmap › Kubernetes (K8s) & AKS › Module: Deploying and Operating
Lessons in this course (15)

12. Deployment strategies

Intermediate★ Must knowLesson 12 of 15
StrategyHowTrade-off
Rolling update (default)Replace pods gradually (maxSurge, maxUnavailable)Zero downtime; old and new run side by side briefly — keep APIs/DB backward compatible
RecreateKill all old, then start newDowntime; for apps that can't run two versions
Blue-greenTwo full environments; switch the Service selector/ingressInstant switch and rollback; double resources
CanarySend a small % of traffic to the new version, then increaseLow-risk; needs ingress/mesh traffic splitting (Argo Rollouts, Flagger, Gateway API weights)
A/BRoute by header/user segmentExperiments