6

Coming to terms: Blue/Green Deployment

 1 year ago
source link: https://developers.redhat.com/blog/2022/10/07/coming-terms-bluegreen-deployment
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

This is one post in a series of posts that will present and define terms that are used in distributed computing, cloud-native computing, and/or container-based development.

Blue/Green Deployment

Blue/Green Deployment

A deployment pattern to enable zero-downtime deployments by running two application versions simultaneously. Because Kubernetes handles routing to, and discovery of, pods, this can be done quickly using patching.

The Blue/Green Deployment model uses two application versions that are running in your cluster at the same time. Assuming the Blue version is the current version of the application, the next version, or the Green version, is started side-by-side with the Blue version. After the Green version is ready — that is, once both of the versions are running simultaneously in separate pods — the route is switched from Blue to Green. At this moment, the newer version of the software is being accessed by any requests to the service.

This switching method, done in Red Hat OpenShift by patching the software-defined route, yields zero downtime while allowing an almost-immediate switch back to the Blue version if necessary (by patching the route back to its original value). While both versions are running, switching between them can be done rapidly by a route patch. When it has been determined which version is superior — hopefully the Green version — the inferior version can be terminated. 


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK