Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e078e9d3
Commit
e078e9d3
authored
May 13, 2020
by
Amy Troschinetz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document blue-green deployments
parent
2bc480bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
doc/ci/environments/incremental_rollouts.md
doc/ci/environments/incremental_rollouts.md
+23
-0
doc/topics/autodevops/index.md
doc/topics/autodevops/index.md
+4
-0
No files found.
doc/ci/environments/incremental_rollouts.md
View file @
e078e9d3
...
...
@@ -114,3 +114,26 @@ timed rollout 30%:
A
[
deployable application
](
https://gitlab.com/gl-release/timed-rollout-example
)
is
available,
[
demonstrating configuration of timed rollouts
](
https://gitlab.com/gl-release/timed-rollout-example/blob/master/.gitlab-ci.yml#L86-95
)
.
## Blue-Green Deployment
Also sometimes known as canary or red-black deployment, this technique is used to reduce
downtime and risk during a deployment. When combined with incremental rollouts, you can
minimize the impact of a deployment causing an issue.
With this technique there are two deployments ("blue" and "green", but any naming can be used).
Only one of these deployments is live at any given time, except during an incremental rollout.
For example, your blue deployment can be currently active on production, while the
green deployment is "live" for testing, but not deployed to production. If issues
are found, the green deployment can be updated without affecting the production
deployment (currently blue). If testing finds no issues, you switch production to the green
deployment, and blue is now available to test the next release.
This process reduces downtime as there is no need to take down the production deployment
to switch to a different deployment. Both deployments are running in parallel, and
can be switched to at any time.
An
[
example deployable application
](
https://gitlab.com/gl-release/blue-green-example
)
is available, with a
[
`gitlab-ci.yml` CI/CD configuration file
](
https://gitlab.com/gl-release/blue-green-example/blob/master/.gitlab-ci.yml
)
that demonstrates blue-green deployments.
doc/topics/autodevops/index.md
View file @
e078e9d3
...
...
@@ -371,6 +371,10 @@ are available:
-
`master`
branch is directly deployed to staging.
-
Manual actions are provided for incremental rollout to production.
TIP:
**Tip:**
Use the
[
blue-green deployment
](
../../ci/environments/incremental_rollouts.md#blue-green-deployment
)
technique
to minimize downtime and risk.
## Using multiple Kubernetes clusters **(PREMIUM)**
When using Auto DevOps, you can deploy different environments to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment