Ring deployment
Widen the audience ring by ring: staff, early adopters, everyone.
Users (or clusters, or regions) are grouped into rings of growing size and importance. A release goes to the innermost ring first, usually your own staff, and only moves outward after it has "baked" without problems. Unlike a percentage canary, you choose who goes first, and those people are the most tolerant users and the quickest to complain.
0.0s / 18s
Step 1 of 6: Everyone on v1. Users are grouped into rings. Each ring is wider and more important than the one before.
- Availability
- 100%
- No downtime
- Pods running
- 1.00×
- Peak 1.00× of normal
- Blast radius
- —
- Inject a bug to measure
- Time to recover
- —
- No incident
v1 (current)v2 (new)StartingIdle or shadow (no user traffic)User pinned to v2SucceededFailed
Trade-offs
More filled is better for you- Uptime during deploy
- 4 out of 4.No downtime
- Low infra cost
- 2 out of 4.Grows ring by ring, up to 2×
- Rollback speed
- 3 out of 4.Halt and revert one ring
- Small blast radius
- 4 out of 4.Inner rings first
- Simplicity
- 2 out of 4.Segment users, clusters or regions
- One version at a time
- 2 out of 4.Sticky per ring
Pros and cons
Pros
- Bugs are found by the people best placed to report them: your own staff.
- Predictable, auditable exposure. You know exactly who has the release.
- Scales to huge fleets when rings are clusters or regions.
Cons
- Slow by design. Each ring bakes for hours or days.
- Inner rings aren't representative. Staff don't use the product like customers do.
- Needs reliable segmentation and tooling to move between rings.
When to reach for it
Use it when
- Products with a large user base where a bad release is very expensive.
- Client software, agents, OS updates and firmware: anything you can't hot-fix instantly.
- Multi-cluster or multi-region platforms.
Avoid it when
- Small apps with few users. Ring 0 would be the whole audience.
- You need fixes live in minutes. Rings trade speed for safety.
How to do it
# Rings as clusters: Argo CD progressive syncs roll out ring by ring.
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: shop
spec:
generators:
- list:
elements:
- { cluster: internal, ring: "0" }
- { cluster: eu-canary, ring: "1" }
- { cluster: eu-prod, ring: "2" }
- { cluster: us-prod, ring: "2" }
strategy:
type: RollingSync
rollingSync:
steps:
- matchExpressions: [{ key: ring, operator: In, values: ["0"] }]
- matchExpressions: [{ key: ring, operator: In, values: ["1"] }]
- matchExpressions: [{ key: ring, operator: In, values: ["2"] }]
maxUpdate: 50% # half of ring 2 at a time
template:
metadata:
name: "shop-{{cluster}}"
labels: { ring: "{{ring}}" }
spec:
project: default
source:
repoURL: https://github.com/example/shop-deploy
path: k8s
targetRevision: main
destination:
name: "{{cluster}}"
namespace: shopGotchas
- Automate the gates between rings: error budgets, crash rates, support tickets.
- Keep an emergency path for security fixes that skips the bake time, and know when you're allowed to use it.
- Large-scale outages have happened when a change skipped staged rollout. Make the rings mandatory, not optional.