Skip to content

Commit

Permalink
Add blue/green service mesh docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 22, 2019
1 parent 1b485b3 commit 8e34696
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/gitbook/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,22 @@ With the above configuration Flagger will run conformance and load tests on the
If the metrics analysis succeeds, live traffic will be switched from the old version to the new one when the
canary is promoted.

The blue/green deployment strategy is supported for all service mesh providers.

Blue/Green rollout steps for service mesh:
* scale up the canary (green)
* run conformance tests for the canary pods
* run load tests and metric checks for the canary pods
* route traffic to canary
* promote canary spec over primary (blue)
* wait for primary rollout
* route traffic to primary
* scale down canary

After the analysis finishes, the traffic is routed to the canary (green) before triggering the primary (blue)
rolling update, this ensures a smooth transition to the new version avoiding dropping in-flight requests during
the Kubernetes deployment rollout.

### HTTP Metrics

The canary analysis is using the following Prometheus queries:
Expand Down
1 change: 1 addition & 0 deletions docs/gitbook/usage/blue-green.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This guide shows you how to automate Blue/Green deployments with Flagger and Kub

For applications that are not deployed on a service mesh, Flagger can orchestrate Blue/Green style deployments
with Kubernetes L4 networking.
When using a service mesh blue/green can be used as specified [here](https://docs.flagger.app/how-it-works#blue-green-deployments).

![Flagger Blue/Green Stages](https://raw.githubusercontent.com/weaveworks/flagger/master/docs/diagrams/flagger-bluegreen-steps.png)

Expand Down

0 comments on commit 8e34696

Please sign in to comment.