Deep dive into Kubernetes deployment strategies — Rolling Updates, Blue/Green, Canary, and A/B deployments with real-world manifests and rollback procedures.
Satveek Gupta February 20, 2026 18 min read Updated May 10, 2026
Kubernetes provides powerful primitives for zero-downtime deployments. Understanding deployment strategies is essential for maintaining high availability in production.
# Switch to green
kubectl patch service web-app-svc -p '{"spec":{"selector":{"slot":"green"}}}'
# Verify rollout
kubectl get pods -l slot=green
# If issues, instant rollback to blue
kubectl patch service web-app-svc -p '{"spec":{"selector":{"slot":"blue"}}}'
# Check rollout history
kubectl rollout history deployment/web-app
# Rollback to previous version
kubectl rollout undo deployment/web-app
# Rollback to specific revision
kubectl rollout undo deployment/web-app --to-revision=3
# Check rollout status
kubectl rollout status deployment/web-app