CICD-302 · Argo Rollouts blue-green
Encyclopedia · Advanced GitOps and progressive delivery · All snippets
Previous · CICD-301 · Next · CICD-303
1. Where it fits
- Placement Under the Argo Rollout's
spec. - Prerequisites trusted configuration repository, test cluster and named GitOps controller or rollout controller.
- Platforms kubernetes, local-lab.
2. Copy the snippet
yaml
strategy:
blueGreen:
activeService: web-active
previewService: web-preview
autoPromotionEnabled: false3. How it works
The preview Service exposes the candidate while the active Service still selects the stable release. Explicit promotion switches the traffic entry point.
Both service paths coexist while the candidate is being evaluated.
flowchart TD
N1["Stable replica set"]
N2["Active Service"]
N1 --> N2
N3["Candidate replica set"]
N4["Preview Service"]
N3 --> N4
N5{"Approve candidate"}
N4 --> N5
N6["Switch Active Service"]
N5 -->|Yes| N6
N7["Keep stable active"]
N5 -->|No| N7
4. Verify the result
Create matching Services and smoke-test web-preview before moving the active Service.
Validation syntax-validated (YAML parse). Status definitions.