Prompt
Argo CD blue green deployment
Latest observation
Oct 19, 2026
OpenAI APIWeb search: off
Argo CD can manage blue/green deployments well, but the pattern is usually implemented with Kubernetes resources and/or a rollout controller rather than Argo CD doing the traffic switching itself.
Common approaches
1. Native Kubernetes blue/green
You maintain:
- Blue and Green versions as separate Deployments
- A Service that points to one of them
- Switch traffic by changing the Service selector
Pros: simple
Cons: manual switch unless automated
Example:
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-blue
spec:
replicas: 3
selector:
matchLabels:
app: myapp
color: blue
template:
metadata:
labels:
app: myapp
color: blue
spec:
containers:
- name: myapp
image: myapp:v1
---
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
selector:
app: myapp
color: blue
ports:
- port: 80
targetPort: 8080
When green is ready, update:
selector:
app: myapp
color: green
Argo CD will sync the manifest change and apply the switch.
2. Argo Rollouts + Argo CD
This is the most common production-grade option.
Use:
- Argo CD for GitOps sync
- Argo Rollouts for blue/green strategy and traffic switching
- Optionally Ingress controller, ALB, NGINX, or Service Mesh for routing
Example Rollout:
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: myapp
spec:
replicas: 3
strategy:
blueGreen:
activeService: myapp-active
previewService: myapp-preview
autoPromotionEnabled: false
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: myapp:v2
Services:
apiVersion: v1
kind: Service
metadata:
name: myapp-active
spec:
selector:
app: myapp
ports:
- port: 80
targetPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: myapp-preview
spec:
selector:
app: myapp
ports:
- port: 80
targetPort: 8080
Workflow:
- Argo CD syncs the Rollout manifest.
- New version goes to the preview service.
- You test it.
- Promote it to active.
Manual promotion:
kubectl argo rollouts promote myapp
Why Argo CD alone is not enough
Argo CD is a declarative delivery tool, not a traffic management engine. It applies desired state from Git, but things like:
- canary analysis
- blue/green traffic shifting
- automatic promotion
- progressive rollout
are handled better by Argo Rollouts.
Recommended setup
If you want blue/green with GitOps:
- Argo CD for syncing manifests
- Argo Rollouts for blue/green behavior
- Ingress / ALB / Service mesh for traffic routing
If you want, I can provide:
- a complete Argo CD + Argo Rollouts blue/green example
- a Helm chart example
- an Ingress-based blue/green setup
- an EKS/ALB-specific configuration