Canary Releases with Argo Rollouts
Progressive delivery on Kubernetes using Argo Rollouts, metric-based analysis, and automated rollback.
Canary deployments reduce blast radius by routing a small percentage of traffic to the new version, then increasing weight based on health signals. Argo Rollouts extends Kubernetes Deployments with fine-grained traffic management.
Canary Traffic Flow
Rollout Strategy
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: payment-api
spec:
replicas: 10
strategy:
canary:
steps:
- setWeight: 10
- pause: { duration: 5m }
- setWeight: 30
- pause: { duration: 5m }
- setWeight: 60
- pause: { duration: 5m }
- setWeight: 100
analysis:
templates:
- templateName: success-rate
startingStep: 1CI/CD + Canary Lifecycle
Service mesh optional
Argo Rollouts works with Ingress NGINX, ALB, or Istio. Pick the integration that matches your platform.
Analysis Template Example
apiVersion: argoproj.io/v1alpha1
kind: AnalysisTemplate
metadata:
name: success-rate
spec:
metrics:
- name: success-rate
interval: 1m
successCondition: result[0] >= 0.99
provider:
prometheus:
address: http://prometheus:9090
query: |
sum(rate(http_requests_total{status=~"2.."}[2m]))
/
sum(rate(http_requests_total[2m]))Blue-Green vs Canary
| Blue-Green | Canary | |
|---|---|---|
| Traffic shift | Instant 100% | Gradual |
| Risk | All-or-nothing switch | Low initial exposure |
| Rollback | Flip selector | Reduce weight |
| Complexity | Lower | Higher |
Conclusion
Canary with Argo Rollouts is ideal when you have reliable metrics and want automated promotion. Start with 10% weight and short pauses, then tune based on your SLOs.
Related Articles
Blue-Green Deployments on Kubernetes
Implement zero-downtime blue-green releases with Kubernetes Services, Ingress, and CI/CD automation.
GitLab CI to Kubernetes: End-to-End Deploy Pipeline
Design a complete CI/CD pipeline from GitLab merge request to Kubernetes production with security gates and GitOps handoff.
Trunk-Based Development with Modern CI/CD
Ship faster with short-lived branches, feature flags, and continuous integration on the main trunk.