<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs" -->

---
title: How to set up blue-green deployments with CircleCI
description: A step-by-step guide to setting up blue-green deployments on Kubernetes using CircleCI. Covers writing dual-environment Kubernetes manifests (blue and green...
canonical: https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to set up blue-green deployments with CircleCI | daily.dev
og:description: A step-by-step guide to setting up blue-green deployments on Kubernetes using CircleCI. Covers writing dual-environment Kubernetes manifests (blue and green...
og:url: https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs
og:image: https://api.daily.dev/og/posts/YjAlABDrS.png
og:image:alt: How to set up blue-green deployments with CircleCI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to set up blue-green deployments with CircleCI

**[CircleCI](https://daily.dev/sources/circle)** · 18 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to setting up blue-green deployments on Kubernetes using CircleCI. Covers writing dual-environment Kubernetes manifests (blue and green Deployments plus production and preview Services), building a five-job CircleCI pipeline with an approval gate that separates deploy from release, running smoke tests against a preview Service before switching traffic, handling database migrations safely with the expand-migrate-contract pattern, and configuring instant one-click rollback from the CircleCI Deploys dashboard. Also discusses when blue-green is the right strategy versus rolling or canary deployments.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://circleci.com/blog/how-to-set-up-blue-green-deployments-with-circleci>

## Similar posts on daily.dev

- [How to set up rolling deployments with CircleCI](https://daily.dev/posts/how-to-set-up-rolling-deployments-with-circleci-cnlaldfi1) · CircleCI · 2 upvotes · 0 comments
- [Blue/green deployments on Kubernetes with Argo Rollouts](https://daily.dev/posts/blue-green-deployments-on-kubernetes-with-argo-rollouts-ymewp28ay) · OctopusDeploy · 8 upvotes · 0 comments
- [Deployment strategies: Types, trade-offs, and how to choose](https://daily.dev/posts/deployment-strategies-types-trade-offs-and-how-to-choose-fttyvpaxs) · CircleCI · 1 upvotes · 0 comments

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#docker](https://daily.dev/tags/docker), [#cicd](https://daily.dev/tags/cicd), [#circleci](https://daily.dev/tags/circleci)

[View this post on daily.dev](https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to set up blue-green deployments with CircleCI","url":"https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs"},"datePublished":"2026-06-08T17:48:31.604Z","dateModified":"2026-06-08T18:08:18.821Z","description":"A step-by-step guide to setting up blue-green deployments on Kubernetes using CircleCI. Covers writing dual-environment Kubernetes manifests (blue and green...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1675516ee7cdeaecedd15ba9a11096d8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1675516ee7cdeaecedd15ba9a11096d8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"CircleCI","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"CircleCI","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/661fc536429943fdb5426b9f33fd8e3c","url":"https://daily.dev/sources/circle"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-set-up-blue-green-deployments-with-circleci-yjalabdrs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"kubernetes,docker,cicd,circleci","timeRequired":"PT18M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CircleCI","item":"https://daily.dev/sources/circle"},{"@type":"ListItem","position":3,"name":"How to set up blue-green deployments with CircleCI"}]}
```

