Blue/Green CI/CD (Batch 8) Cheat Sheet

Swap traffic safely

Last Updated: November 21, 2025

Focus Areas

Focus
Deploy green environment
Switch load balancer weights

Commands & Queries

kubectl apply -f green.yml
Deploy
kubectl patch svc frontend -p '{"spec":{"selector":{"color":"green"}}}'
Redirect
run smoke tests
Validate

Summary

Blue/green zero-downtime releases.

💡 Pro Tip: Automate smoke tests before traffic shift.
← Back to DevOps & Cloud | Browse all categories | View all cheat sheets