Blue-Green Deployment Switch

Blue-Green Deployment Switch An architecture diagram generated by Archify. Load Balancer · production traffic · Before switch Load Balancer production traffic Blue · v1.0.0 · active · Before switch Blue v1.0.0 · active Green · v2.0.0 · preview · Before switch Green v2.0.0 · preview Load Balancer · production traffic · After switch Load Balancer production traffic Green · v2.0.0 · active · After switch Green v2.0.0 · active Blue · v1.0.0 · previous version · After switch Blue v1.0.0 · previous version Scale down · after analysis / delay · After switch Scale down after analysis / delay traffic standby selector change traffic kept as previous version replicas: 0 Before switch After switch Legend Version / scaling Load balancer

Before switch

  • • activeService routes traffic to Blue v1.0.0
  • • Green v2.0.0 is verified through previewService
  • • prePromotionAnalysis runs smoke tests before promotion

After switch

  • • Automatic or manual promotion changes the active selector
  • • Post-promotion analysis checks behavior after the switch
  • • Scale down the old ReplicaSet after analysis / delay conditions