CICD-301 · Argo Rollouts canary
Encyclopedia · Advanced GitOps and progressive delivery · All snippets
Previous · CICD-300 · Next · CICD-302
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:
canary:
steps:
- setWeight: 20
- pause: {duration: 5m}
- setWeight: 50
- pause: {}3. How it works
The controller shifts the candidate to the configured canary weight and pauses before increasing exposure. At the final pause it waits for promotion or an abort decision.
The same candidate increases its share only after pauses and a promotion decision.
flowchart TD
N1["Canary at 20 percent"]
N2["Timed pause"]
N1 --> N2
N3["Canary at 50 percent"]
N2 --> N3
N4{"Final promotion"}
N3 --> N4
N5["Complete rollout"]
N4 -->|Approve| N5
N6["Return to stable"]
N4 -->|Abort| N6
4. Verify the result
Without a traffic router, weights approximate replica counts. Inspect the Rollout before manually promoting the final pause.
Validation syntax-validated (YAML parse). Status definitions.