Concepts
Blue/Green deployment concepts
Last updated
Was this helpful?
Blue/Green deployment concepts
Last updated
Was this helpful?
Blue/Green deployment, also called Red/Black in Spinnaker, is a deployment pattern based on switching traffic between two identical environments running different versions of an application.
This technique allows avoiding common pitfall associated with deploying a software, such as downtime and the lack of rollback capability.
Blue environment represents the current version of the application served in production. In parallel, the green environment is staged running a different version of the application. After the green environment is ready and tested, production traffic is redirected from blue to green environment.
If any problems are identified, you can rollback by reverting traffic back to the blue environment.
For example, We have an application called spinnaker-app. This application is served by a service called spinnaker-service. The first version deployed is the blue version of our application.
We need to update our application to a newer version, which become the green version. Then a battery of tests should be run against this version in order to check if everything is working as expected.
After checking the green version is up and running, and work as expected, we switch the traffic from the blue version to the green version.
Now the user uses the application version "green".
Let's say we notice a critical bug which passed through the validation process and has been deployed along the new version. Since the previous version of the application is still up and running , yet not exposed to production traffic, we can easily switch back the traffic from the new version to the old one.
At the end of this section, we will create a Blue/Green deployment strategy