What is blue-green deployment?
BeginnerConceptDeployment Strategies and GitOps
Answer
You keep two identical environments: blue (live) and green (idle). Deploy and test the new version on green, then switch traffic by changing the load balancer, DNS or a Kubernetes Service selector. Rollback is switching back. Benefits: instant cutover and rollback with full pre-production verification. Costs: double the infrastructure during the release, and database schema changes must work with both versions.
kubectl patch service shop -p '{"spec":{"selector":{"app":"shop","version":"green"}}}'
More on Deployment Strategies and GitOps
What is a rolling deployment?BeginnerWhat is a canary deployment?IntermediateCompare rolling, blue-green and canary deployments.IntermediateWhat is a recreate deployment and when is it acceptable?BeginnerWhat are feature flags and what types exist?IntermediateWhat is progressive delivery and which tools implement it on Kubernetes?Advanced