Blue-Green Deployment Orchestrator
Expert in progressive delivery strategies — blue-green, canary, and rolling deployments with automated traffic shifting and rollback.
Activation Triggers
Activate on: "blue-green deployment", "canary release", "rolling deployment", "traffic shifting", "rollback automation", "progressive delivery", "Argo Rollouts", "Flagger", "deployment strategy"
NOT for: K8s manifests → kubernetes-manifest-generator | CI/CD pipelines → github-actions-pipeline-builder | Monitoring → monitoring-stack-deployer
Quick Start
- Choose strategy — blue-green for instant cutover, canary for gradual rollout, rolling for simple updates
- Deploy progressive delivery controller — Argo Rollouts or Flagger
- Define analysis metrics — error rate, latency p99, custom business metrics
- Configure traffic shifting — weighted routing via Istio, Linkerd, or Gateway API
- Set automated rollback — if analysis fails, automatically revert to stable version
Core Capabilities
| Domain |
Technologies |
| Controllers |
Argo Rollouts 1.7, Flagger 1.38, Spinnaker |
| Traffic Splitting |
Istio VirtualService, Linkerd TrafficSplit, Gateway API HTTPRoute |
| Analysis |
Prometheus queries, Datadog metrics, CloudWatch, custom webhooks |
| Strategies |
Blue-green, canary (linear/exponential), A/B testing, rolling |
| Platforms |
Kubernetes, AWS ECS (CodeDeploy), Cloudflare Workers (gradual) |
Architecture Patterns
Argo Rollouts Canary Strategy
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: api-server
spec:
replicas: 5
strategy:
canary:
canaryService: api-canary-svc
stableService: api-stable-svc
trafficRouting:
istio:
virtualService:
name: api-vsvc
steps:
- setWeight: 5 # 5% traffic to canary
- pause: { duration: 5m }
- analysis:
templates:
- templateName: error-rate-check
- setWeight: 25 # 25% if analysis passes
- pause: { duration: 10m }
- analysis:
templates:
- templateName: latency-check
- setWeight: 50 # 50%
- pause: { duration: 10m }
- setWeight: 100 # Full promotion
rollbackWindow:
revisions: 2
Blue-Green with Instant Cutover
┌──────────────┐
│ Router │
│ (Ingress/ │
│ Gateway) │
└──────┬───────┘
│
┌────────────┼────────────┐
▼ ▼
┌────────────────┐ ┌────────────────┐
│ BLUE (active) │ │ GREEN (preview)│
│ v1.2.0 │ │ v1.3.0 │
│ 3 replicas │ │ 3 replicas │
└────────────────┘ └────────────────┘
Workflow:
1. Deploy v1.3.0 to GREEN (preview, no traffic)
2. Run smoke tests against GREEN preview URL
3. Switch router: 100% traffic BLUE → GREEN
4. Monitor for 15 minutes
5. If healthy: scale down BLUE (now standby)
6. If unhealthy: instant rollback — switch back to BLUE
Canary Analysis Template
apiVersion: argoproj.io/v1alpha1
kind: AnalysisTemplate
metadata:
name: error-rate-check
spec:
metrics:
- name: error-rate
interval: 1m
count: 5
successCondition: result[0] < 0.01 # < 1% error rate
failureLimit: 2
provider:
prometheus:
address: http://prometheus:9090
query: |
sum(rate(http_requests_total{status=~"5..",
app="{{args.service}}",
rollout_hash="{{args.canary-hash}}"}[2m]))
/
sum(rate(http_requests_total{
app="{{args.service}}",
rollout_hash="{{args.canary-hash}}"}[2m]))
Anti-Patterns
- Canary without analysis — shifting traffic to canary but not measuring success. Always define automated analysis with clear success/failure criteria.
- No rollback automation — manual rollback during incidents adds delay. Configure automatic rollback when analysis metrics fail.
- Testing only happy paths in canary — synthetic smoke tests pass but real user traffic reveals issues. Include error rate and latency metrics from real traffic.
- Blue-green without enough capacity — running both blue and green requires 2x resources. Budget for double capacity during deployment windows.
- Skipping progressive steps — going from 5% to 100% in one jump. Use gradual steps (5% → 25% → 50% → 100%) with analysis at each stage.
Quality Checklist
[ ] Deployment strategy documented (blue-green, canary, or rolling)
[ ] Progressive delivery controller deployed (Argo Rollouts or Flagger)
[ ] Traffic splitting configured via service mesh or Gateway API
[ ] Canary analysis templates defined with Prometheus queries
[ ] Automated rollback triggers on error rate or latency degradation
[ ] Preview/canary service accessible for pre-promotion testing
[ ] Rollback tested independently (not just on failure)
[ ] Deployment takes less than 15 minutes end-to-end
[ ] Resource budget accounts for blue-green double capacity
[ ] Deployment status visible in Grafana or ArgoCD dashboard
[ ] Notification sent on promotion and rollback events
[ ] Runbook documents manual override procedures
1---2license: Apache-2.03name: blue-green-deployment-orchestrator4description: "Blue-green and canary deployment orchestrator with traffic shifting and automated rollback. Activate on: blue-green deployment, canary release, rolling deployment, traffic shifting, rollback automation, progressive delivery, Argo Rollouts, Flagger. NOT for: K8s manifest generation (use kubernetes-manifest-generator), CI/CD pipeline setup (use github-actions-pipeline-builder), monitoring (use monitoring-stack-deployer)."5allowed-tools: Read,Write,Edit,Bash(docker:*,kubectl:*,terraform:*,npm:*,npx:*)6category: DevOps & Infrastructure7tags:8 - deployment9 - canary10 - progressive-delivery11 - devops12pairs-with:13 - skill: devops-automator14 reason: Deployment orchestration is a key piece of the broader DevOps automation15 - skill: monitoring-stack-deployer16 reason: Canary analysis requires metrics to make promotion/rollback decisions17metadata:18 source: https://skillmd.com/skills/curiositech/blue-green-deployment-orchestrator19---2021# Blue-Green Deployment Orchestrator2223Expert in progressive delivery strategies — blue-green, canary, and rolling deployments with automated traffic shifting and rollback.2425## Activation Triggers2627**Activate on:** "blue-green deployment", "canary release", "rolling deployment", "traffic shifting", "rollback automation", "progressive delivery", "Argo Rollouts", "Flagger", "deployment strategy"2829**NOT for:** K8s manifests → `kubernetes-manifest-generator` | CI/CD pipelines → `github-actions-pipeline-builder` | Monitoring → `monitoring-stack-deployer`3031## Quick Start32331. **Choose strategy** — blue-green for instant cutover, canary for gradual rollout, rolling for simple updates342. **Deploy progressive delivery controller** — Argo Rollouts or Flagger353. **Define analysis metrics** — error rate, latency p99, custom business metrics364. **Configure traffic shifting** — weighted routing via Istio, Linkerd, or Gateway API375. **Set automated rollback** — if analysis fails, automatically revert to stable version3839## Core Capabilities4041| Domain | Technologies |42|--------|-------------|43| **Controllers** | Argo Rollouts 1.7, Flagger 1.38, Spinnaker |44| **Traffic Splitting** | Istio VirtualService, Linkerd TrafficSplit, Gateway API HTTPRoute |45| **Analysis** | Prometheus queries, Datadog metrics, CloudWatch, custom webhooks |46| **Strategies** | Blue-green, canary (linear/exponential), A/B testing, rolling |47| **Platforms** | Kubernetes, AWS ECS (CodeDeploy), Cloudflare Workers (gradual) |4849## Architecture Patterns5051### Argo Rollouts Canary Strategy5253```yaml54apiVersion: argoproj.io/v1alpha155kind: Rollout56metadata:57 name: api-server58spec:59 replicas: 560 strategy:61 canary:62 canaryService: api-canary-svc63 stableService: api-stable-svc64 trafficRouting:65 istio:66 virtualService:67 name: api-vsvc68 steps:69 - setWeight: 5 # 5% traffic to canary70 - pause: { duration: 5m }71 - analysis:72 templates:73 - templateName: error-rate-check74 - setWeight: 25 # 25% if analysis passes75 - pause: { duration: 10m }76 - analysis:77 templates:78 - templateName: latency-check79 - setWeight: 50 # 50%80 - pause: { duration: 10m }81 - setWeight: 100 # Full promotion82 rollbackWindow:83 revisions: 284```8586### Blue-Green with Instant Cutover8788```89 ┌──────────────┐90 │ Router │91 │ (Ingress/ │92 │ Gateway) │93 └──────┬───────┘94 │95 ┌────────────┼────────────┐96 ▼ ▼97 ┌────────────────┐ ┌────────────────┐98 │ BLUE (active) │ │ GREEN (preview)│99 │ v1.2.0 │ │ v1.3.0 │100 │ 3 replicas │ │ 3 replicas │101 └────────────────┘ └────────────────┘102103Workflow:104 1. Deploy v1.3.0 to GREEN (preview, no traffic)105 2. Run smoke tests against GREEN preview URL106 3. Switch router: 100% traffic BLUE → GREEN107 4. Monitor for 15 minutes108 5. If healthy: scale down BLUE (now standby)109 6. If unhealthy: instant rollback — switch back to BLUE110```111112### Canary Analysis Template113114```yaml115apiVersion: argoproj.io/v1alpha1116kind: AnalysisTemplate117metadata:118 name: error-rate-check119spec:120 metrics:121 - name: error-rate122 interval: 1m123 count: 5124 successCondition: result[0] < 0.01 # < 1% error rate125 failureLimit: 2126 provider:127 prometheus:128 address: http://prometheus:9090129 query: |130 sum(rate(http_requests_total{status=~"5..",131 app="{{args.service}}",132 rollout_hash="{{args.canary-hash}}"}[2m]))133 /134 sum(rate(http_requests_total{135 app="{{args.service}}",136 rollout_hash="{{args.canary-hash}}"}[2m]))137```138139## Anti-Patterns1401411. **Canary without analysis** — shifting traffic to canary but not measuring success. Always define automated analysis with clear success/failure criteria.1422. **No rollback automation** — manual rollback during incidents adds delay. Configure automatic rollback when analysis metrics fail.1433. **Testing only happy paths in canary** — synthetic smoke tests pass but real user traffic reveals issues. Include error rate and latency metrics from real traffic.1444. **Blue-green without enough capacity** — running both blue and green requires 2x resources. Budget for double capacity during deployment windows.1455. **Skipping progressive steps** — going from 5% to 100% in one jump. Use gradual steps (5% → 25% → 50% → 100%) with analysis at each stage.146147## Quality Checklist148149```150[ ] Deployment strategy documented (blue-green, canary, or rolling)151[ ] Progressive delivery controller deployed (Argo Rollouts or Flagger)152[ ] Traffic splitting configured via service mesh or Gateway API153[ ] Canary analysis templates defined with Prometheus queries154[ ] Automated rollback triggers on error rate or latency degradation155[ ] Preview/canary service accessible for pre-promotion testing156[ ] Rollback tested independently (not just on failure)157[ ] Deployment takes less than 15 minutes end-to-end158[ ] Resource budget accounts for blue-green double capacity159[ ] Deployment status visible in Grafana or ArgoCD dashboard160[ ] Notification sent on promotion and rollback events161[ ] Runbook documents manual override procedures162```