
- Zero-downtime deployments: the live environment remains unchanged until verification completes.
- Fast, safe rollbacks: switch traffic back to the previous environment instantly.
- Safe testing surface: preview endpoints enable QA and automated checks without affecting users.
| Parameter | Purpose | Example / Notes |
|---|---|---|
activeService | Kubernetes Service that routes live production traffic to the currently active ReplicaSet. | Required. |
previewService | Optional internal Service that points to the Green ReplicaSet during preview. Useful for tests and QA. | web-api-preview-svc |
previewReplicaCount | Number of replicas the Green ReplicaSet runs during the preview phase to conserve resources while allowing verification. | 1 or small number. |
autoPromotionEnabled | If true, the rollout auto-promotes Green to receive live traffic when health checks pass. If false, manual promotion is required. | Defaults to true if not specified. |
postPromotionAnalysis | Automated analysis to run after Green receives 100% traffic (e.g., Prometheus queries to validate SLOs). | Can reference analysis templates. |
scaleDownDelaySeconds | Delay before scaling down old Blue pods after traffic is switched to Green; provides a rollback window. | e.g., 30 |
abortScaleDownDelaySeconds | Delay before terminating faulty Green pods after a manual abort so you can collect diagnostics. | e.g., 10 |
autoPromotionEnabled is set to false, you must manually promote the rollout once verification succeeds:
Note: If
autoPromotionEnabled is omitted, Argo Rollouts defaults it to true (automatic promotion). For controlled releases or manual QA gates, explicitly set it to false.- Runs after the Green ReplicaSet receives 100% of traffic.
- Use it to validate error rates, latency, throughput, and other SLOs.
- Common integrations: Prometheus queries, synthetic checks, or custom analysis templates.
- Use a small
previewReplicaCount(1–2) to save resources while allowing meaningful verification. - Set
scaleDownDelaySecondslong enough to allow rollback but short enough to avoid resource waste. - Configure
abortScaleDownDelaySecondsto give developers time to fetch logs and metrics if you abort a rollout. - Automate post-promotion checks to catch regressions quickly and reduce manual intervention.
Warning: If you set
scaleDownDelaySeconds or abortScaleDownDelaySeconds too low, you may not have sufficient time to collect logs or metrics for debugging. Choose values that balance fast cleanup with operational troubleshooting needs.