12 CI/CD Deployment Rollout Types Explained

Recreate, rolling, blue-green, canary, progressive, linear, A/B, shadow, flags, rings, waves and phased mobile rollouts, with Kubernetes and AWS configs.

Dec 31, 2025 - 15:36
Nov 7, 2026 - 05:16
 0  326
12 CI/CD Deployment Rollout Types Explained

The 12 common CI/CD rollout types are recreate, rolling update, blue-green, canary, automated progressive delivery, linear traffic shifting, A/B testing, shadow (mirrored) deployment, feature-flag releases, ring-based deployment, regional waves and phased mobile rollouts. They differ in how fast users see new code, how much extra capacity they need and how quickly you can roll back.

A rollout type decides who gets a new version, in what order and how you back out if it misbehaves. This guide explains each type with the tool settings that implement it, checked against the Kubernetes, Argo Rollouts, Flagger, AWS CodeDeploy, Istio, Apple and Google Play documentation. It covers containers, serverless functions and mobile apps, so it goes wider than our Kubernetes-only guides to Kubernetes deployment strategies and Kubernetes rollout strategies with examples. For how these fit into a full pipeline, start with our CI/CD pipeline examples from big tech companies.

Key takeaways

  • Kubernetes Deployments support only two built-in strategies, RollingUpdate (the default) and Recreate. Blue-green, canary, A/B and mirroring need a controller such as Argo Rollouts or Flagger, or a service mesh.
  • Blue-green gives the fastest rollback but needs a second full copy of the application while both versions run.
  • A canary limits how many users see a bad release. Adding automated metric analysis turns it into progressive delivery that promotes or rolls back without a person watching dashboards.
  • Shadow deployments copy live traffic to the new version and discard its responses, so they test load and correctness without user impact, but requests that write data need special care.
  • Feature flags separate deploying code from releasing a feature and combine with every other type in this list.
  • Mobile apps cannot be rolled back on users' phones, so phased releases on the App Store and staged rollouts on Google Play are the main safety net there.

Deployment, release and rollout: three different things

A deployment puts a new build on servers. A release exposes a feature to users. A rollout is the order and pace in which a deployment reaches production capacity and users. Keeping the words apart helps: you can deploy code that no one sees yet (feature flags), or release a feature to 1% of users with no new deployment at all. Several rollout types below mix both ideas.

The 12 rollout types at a glance

#Rollout typeHow traffic movesDowntimeRollback speedExtra capacityTypical tools
1RecreateOld stops, then new startsYesSlow (redeploy)NoneKubernetes Recreate
2Rolling updateInstances replaced in batchesNoMediumSmall surgeKubernetes default, CodeDeploy in-place
3Blue-greenAll traffic switches at onceNoInstantUp to 100%Argo Rollouts, Flagger, CodeDeploy
4Canary (manual steps)Small share first, then moreNoFastSmallArgo Rollouts, Flagger, mesh
5Automated progressive deliveryCanary steps gated by metricsNoAutomaticSmallArgo Rollouts analysis, Flagger
6Linear traffic shiftingEqual increments on a timerNoAutomatic on alarmSmallCodeDeploy (Lambda, ECS), AWS SAM
7A/B testingChosen users by header or cookieNoFastSmallFlagger, Istio, NGINX
8Shadow (mirroring)Copy of live traffic, responses droppedNoNot neededUp to 100%Istio, Flagger, Gateway API
9Feature-flag releaseCode deployed off, switched on per userNoInstant (flag off)NoneOpenFeature, flag services
10Ring-basedInternal ring, then wider ringsNoPer ringNoneAzure Pipelines stages, any CD tool
11Regional wavesOne box, one zone, one region, then moreNoAutomatic per waveNonePipeline stages with alarms
12Phased mobile rolloutPercentage of app users over daysNoHalt only, then new buildNoneApp Store phased release, Google Play staged rollout

1. Recreate

All old instances stop, then the new version starts. There is a gap with no running application, so this type only suits development environments, batch workers, or applications that cannot run two versions side by side (for example, a schema change that the old code cannot read). In Kubernetes it is one line:

spec:
  strategy:
    type: Recreate

The Kubernetes documentation states that all existing Pods are killed before new ones are created. Rollback means deploying the previous version again, with another short outage.

2. Rolling update

Instances are replaced a few at a time, so the service stays up and old and new versions serve traffic together for a while. This is the default for Kubernetes Deployments. Two settings control the pace, and both default to 25%:

spec:
  replicas: 8
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 25%        # extra Pods allowed above replicas
      maxUnavailable: 25%  # Pods that may be unavailable during the update

A rolling update is only as safe as your readiness probe, because Kubernetes moves on as soon as new Pods report ready. If a rollout stalls, the Deployment's Progressing condition turns false with reason ProgressDeadlineExceeded after progressDeadlineSeconds, which defaults to 600. Roll back with:

kubectl rollout status deployment/web --timeout=5m
kubectl rollout undo deployment/web
kubectl rollout undo deployment/web --to-revision=2

Outside Kubernetes, AWS CodeDeploy's in-place deployments on EC2 do the same thing with CodeDeployDefault.OneAtATime (the default) or CodeDeployDefault.HalfAtATime. The main risk is that both versions must work with the same database and the same API clients during the update.

3. Blue-green

The new version (green) runs alongside the current one (blue) and receives no user traffic until you switch. Tests can hit green through a separate preview endpoint. The switch moves all traffic at once, and switching back is just as fast. In Argo Rollouts:

strategy:
  blueGreen:
    activeService: web-active      # required
    previewService: web-preview    # optional, for testing green
    autoPromotionEnabled: false    # default is true
    scaleDownDelaySeconds: 30      # default 30: how long blue stays up after the switch

With autoPromotionEnabled left at its default of true, Argo Rollouts promotes green as soon as it is ready. Setting it to false waits for a manual promote, and prePromotionAnalysis can run automated checks first. DoorDash used exactly this setup, as described in our continuous deployment examples.

The costs: during the switch you run two full copies of the application, and every user moves to green at once, so a bug that only appears under real traffic hits everyone. Database changes must be backward compatible so blue still works if you switch back.

4. Canary with manual steps

A canary sends a small share of traffic to the new version, waits, then increases the share step by step. A bad release only affects that small share. In Argo Rollouts the steps are explicit:

strategy:
  canary:
    steps:
      - setWeight: 10
      - pause: {duration: 10m}
      - setWeight: 30
      - pause: {}            # waits until someone runs: kubectl argo rollouts promote web
      - setWeight: 60
      - pause: {duration: 10m}

Without a service mesh or ingress that can split traffic, Argo Rollouts approximates the weight with Pod counts. With 10 replicas, a 10% step runs one canary Pod and nine stable Pods, and percentages that do not divide evenly are rounded. For exact percentages, or to send less than one Pod's share of traffic, configure traffic routing through Istio, NGINX, the Gateway API or a cloud load balancer.

5. Automated progressive delivery

Progressive delivery is a canary where software, not a person, decides whether to continue. At each step a controller queries metrics (success rate, latency, business numbers) and promotes or rolls back. Flagger expresses the whole policy in a Canary resource:

apiVersion: flagger.app/v1beta1
kind: Canary
metadata:
  name: web
spec:
  targetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: web
  service:
    port: 8080
  analysis:
    interval: 1m        # how often checks run
    threshold: 5        # failed checks allowed before rollback
    stepWeight: 10      # traffic added per step
    maxWeight: 50       # promote after reaching this weight
    metrics:
      - name: request-success-rate
        thresholdRange:
          min: 99
        interval: 1m
      - name: request-duration
        thresholdRange:
          max: 500
        interval: 1m

Argo Rollouts does the same with an analysis step in the canary that references an AnalysisTemplate, for example a Prometheus query with successCondition: result[0] >= 0.95. The quality of this type depends on the metrics: if your dashboards cannot tell a good release from a bad one, automation cannot either. Our guide to post-deployment validation steps covers which signals to check.

6. Linear traffic shifting

Linear shifting moves equal slices of traffic on a fixed timer, for example 10% every minute, and rolls back if a CloudWatch alarm fires. It is the managed option for AWS Lambda and Amazon ECS through CodeDeploy, which also offers two-step canary and all-at-once configurations:

PlatformCanary configurationsLinear configurations
AWS LambdaCodeDeployDefault.LambdaCanary10Percent5Minutes, 10, 15 or 30 minutesCodeDeployDefault.LambdaLinear10PercentEvery1Minute, every 2, 3 or 10 minutes
Amazon ECSCodeDeployDefault.ECSCanary10Percent5Minutes, ECSCanary10Percent15MinutesCodeDeployDefault.ECSLinear10PercentEvery1Minutes, ECSLinear10PercentEvery3Minutes

With AWS SAM, a few lines on the function enable it, including pre-traffic and post-traffic test hooks:

MyFunction:
  Type: AWS::Serverless::Function
  Properties:
    Handler: index.handler
    Runtime: nodejs20.x
    CodeUri: s3://bucket/code.zip
    AutoPublishAlias: live
    DeploymentPreference:
      Type: Linear10PercentEvery1Minute
      Alarms:
        - !Ref AliasErrorMetricGreaterThanZeroAlarm
      Hooks:
        PreTraffic: !Ref PreTrafficCheckFunction
        PostTraffic: !Ref PostTrafficCheckFunction

The AWS docs note that the first gradual deployment needs an existing function version to shift from, so deploy once with AutoPublishAlias before adding DeploymentPreference.

7. A/B testing

A/B testing routes specific users to the new version based on a request attribute such as a header, cookie, region or user ID, and keeps each user on the same version. That stickiness is the difference from a canary, where any request may land on either version. It suits front-end changes and anything that needs a consistent user experience, and it is the only way to compare business outcomes per user. Flagger supports it with a match block on Istio, NGINX, Contour, Gloo Edge, App Mesh and the Gateway API:

analysis:
  interval: 1m
  threshold: 10
  iterations: 10
  match:
    - headers:
        x-canary:
          regex: ".*insider.*"
    - headers:
        cookie:
          regex: "^(.*?;)?(canary=always)(;.*)?$"

A/B testing for product experiments (did more people click?) is usually done with feature flags and an experimentation platform rather than at the network layer. Our older post on A/B testing in continuous deployment covers that side.

8. Shadow deployment (traffic mirroring)

The new version receives a copy of real production requests, but users only ever get responses from the current version. You compare error rates, latency and output without any user impact. Istio configures it on a VirtualService:

apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  name: web
spec:
  hosts:
    - web
  http:
    - route:
        - destination:
            host: web
            subset: v1
          weight: 100
      mirror:
        host: web
        subset: v2
      mirrorPercentage:
        value: 20.0

Istio describes mirrored requests as fire and forget: their responses are discarded, and the Host header of each mirrored request gets a -shadow suffix so the receiving service can recognise it. Flagger offers this as "Blue/Green Mirroring" on Istio and the Gateway API.

The catch is side effects. If the shadow version writes to the same database, sends emails or charges cards, mirroring repeats those actions. Point the shadow at isolated stores or stub out external calls, and mirror read-heavy endpoints first. You also pay for the extra capacity that handles the copied load.

9. Feature-flag release (dark launch)

The new code is deployed everywhere but stays switched off. A flag service turns it on for staff, then a percentage of users, then everyone, without another deployment. Turning a flag off is the fastest rollback in this list. Flickr described using flags for private betas, bucket testing and dark launches as early as 2009, and many of the companies in our continuous deployment examples still rely on them.

OpenFeature, a CNCF incubating project, defines a vendor-neutral API so application code does not depend on one flag vendor. Two warnings: old flags pile up and make code hard to read, so give each flag an owner and a removal date, and remember that flags do not protect you from bugs in the code that runs before the flag is checked.

10. Ring-based deployment

Ring deployment releases to groups of users in order of how much risk they can absorb: first the team that built the change, then the whole company, then early adopters, then everyone. Microsoft's Azure Pipelines documentation shows a release moving through Dev and QA stages to "Prod ring 1" and then "Prod ring 2". Each ring is a stage in the pipeline with its own approval or automated check, and a problem stops promotion to the next ring.

Rings work well for internal tools and SaaS products where you can identify user groups, and they combine naturally with feature flags (each ring is a flag audience) or with separate deployments per ring.

11. Regional waves

Large services deploy region by region so that a bad change never hits every region at once. The AWS Builders' Library article "Automating safe, hands-off deployments" by Clare Liguori describes the pattern Amazon uses:

  • Production is split into waves of increasing size. The first wave is a single low-traffic region, deployed one Availability Zone or cell at a time.
  • Each wave starts with one box serving a small share of traffic, then continues in batches of up to 33% of the fleet.
  • Alarms roll the deployment back automatically, and the pipeline waits (bakes) before moving on: at least an hour after the one box and longer after the first region.
  • A full global rollout typically takes several business days, and deployments avoid nights, weekends and holidays.

You can apply the same idea at smaller scale with one pipeline stage per cluster or region and an automated check between stages. Our post on deployment rollback strategies explains how to undo a wave that fails.

12. Phased mobile rollout

Once a mobile app update is installed you cannot pull it back, so app stores let you release gradually instead. Apple's App Store phased release spreads an automatic update over seven days:

Day1234567
Share of users with automatic updates1%2%5%10%20%50%100%

You can pause for up to 30 days in total, and anyone can still download the update manually from the App Store during the phase. On Google Play, a staged rollout sends an update to the percentage you choose, and you raise it yourself; halting stops new users from getting the update but does not remove it from devices that already have it. Google's advice for a bad build is to roll out a new release with a fix. Pair either one with crash reporting and server-side feature flags so you can switch off a broken feature without a new app version.

How to choose a rollout type

SituationGood fitWhy
Dev or test environment, downtime acceptableRecreateSimplest, no version overlap
Stateless web service on Kubernetes, low risk changeRolling updateBuilt in, no extra tools
Need instant rollback and can afford double capacityBlue-greenOne switch forward or back
High-traffic service, risky changeCanary or automated progressive deliverySmall blast radius, metric-driven decisions
Serverless functions or ECS on AWSLinear or canary via CodeDeployManaged traffic shifting with alarm rollback
UI change that must look consistent per userA/B testing or feature flagsSticky assignment per user
Rewrite or new datastore, unsure about loadShadow deploymentReal traffic with no user impact
Many regions or clustersRegional waves plus canary in eachFailures stay in one region
Mobile appPhased or staged rollout plus flagsNo rollback on devices

Most mature pipelines combine types. A common setup is feature flags for user-facing changes, an automated canary inside each cluster, and regional waves across clusters.

Rollback behaviour by type

  • Recreate and rolling update: redeploy the previous version (kubectl rollout undo). Expect minutes, not seconds.
  • Blue-green: switch the active service back while blue is still running. After scaleDownDelaySeconds passes, blue is scaled down and rollback becomes a fresh deployment.
  • Canary and progressive delivery: abort sends traffic back to stable, which stays at full size by default in Argo Rollouts unless dynamicStableScale is enabled.
  • Linear shifting: CodeDeploy moves traffic back to the original version when an alarm or hook fails.
  • Feature flags: switch the flag off.
  • Mobile: halt or pause the rollout, then ship a fixed version.

Whatever the type, schema changes decide whether rollback is safe. Use the expand and contract pattern: add new columns or tables first, deploy code that works with both, and remove old structures only after the new version is stable.

Practise these rollouts hands-on

The fastest way to understand these types is to break a release on purpose and watch each one react. Our DevOps training in Pune includes labs on rolling updates, blue-green and canary releases with monitoring, in classroom sessions in Kharadi and live online across India. For deeper Kubernetes work, see the CKA training.

Frequently asked questions

What are the main types of deployment rollout in CI/CD?

The common types are recreate, rolling update, blue-green, canary, automated progressive delivery, linear traffic shifting, A/B testing, shadow deployment, feature-flag releases, ring-based deployment, regional waves and phased mobile rollouts. Most teams start with rolling updates and add canary or blue-green for risky services.

What is the default deployment strategy in Kubernetes?

RollingUpdate is the default for a Kubernetes Deployment, with maxSurge and maxUnavailable both set to 25%. The only other built-in strategy is Recreate. Blue-green and canary need a controller such as Argo Rollouts or Flagger.

What is the difference between blue-green and canary deployment?

Blue-green runs two full environments and switches all traffic at once, which gives instant rollback but exposes every user to the new version together. Canary moves a small share of traffic first and increases it in steps, so a bad release affects fewer users but takes longer to complete.

What is the difference between canary and A/B testing?

A canary splits traffic by percentage to test whether a release is healthy, and a user may hit either version. A/B testing routes chosen users, by header, cookie or user ID, to one version consistently, usually to compare user behaviour or business results.

Is shadow deployment the same as traffic mirroring?

Yes, the terms are used for the same idea. Live requests are copied to the new version and its responses are discarded. Istio calls it mirroring and Flagger offers it as Blue/Green Mirroring. Watch for duplicated writes and external calls.

Which rollout type has the fastest rollback?

Turning off a feature flag and switching a blue-green service back are both near instant, as long as the old version is still running. Rolling updates and recreate need a redeploy, and mobile apps cannot be rolled back on devices at all.

Can I use canary deployments without a service mesh?

Yes. Argo Rollouts approximates traffic weight by changing the number of canary and stable Pods behind one Service, and Flagger's Blue/Green mode works with plain Kubernetes. A mesh or ingress controller is needed for exact percentages, header routing and mirroring.

How do phased releases work for mobile apps?

Apple's phased release spreads an automatic update over seven days, from 1% on day one to 100% on day seven, with up to 30 days of pauses. Google Play staged rollouts use a percentage you raise manually and can be halted, but neither store removes an update already installed.

References

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.