Publishing an Application by Blue/Green Deployment


Blue/Green Deployment is a deployment mode for application publishing, while continuing to serve clients without incurring downtime.


The Blue/Green Deployment mode requires two identical clusters that are configured exactly the same way. While one cluster is active and serving the clients, the other cluster remains idle. After testing the new version, load balancing is used to switch traffic to the new version, and then the old version of the application is upgraded to the new version. In this way, a new version of the application is thus published.


For more information about Blue/Green Deployment, see Zero-downtime Deployment in Kubernetes.

Prerequisites

Organization and namespace name are selected.

Creating a Publish Form

  1. In the EnOS Management Console, navigate to Enterprise Container Platform and select Publish > Blue/Green Deployment.
  2. Click New Publish Form to complete the configuration information. According to the selected Deployment, the system will filter the Service, Route and Service Monitor of the same name to update synchronously.


The steps to publish an app via Blue/Green Deployment in Container Cluster Management are similar to those in Developer Studio. For more information, see Publishing an Application by Blue/Green Deployment.

Checking the Publish Result

When the publishing starts, the status of the publish form is changed to Running. You can check the running status and result of the publish form in the Publish Logs section.

Next Step

When the publishing is completed, if it is successful, you can change the weight for the new version in the Publish Operations section and start the publishing again.


If the publishing fails, you can click Rollback in the Publish Operations section to roll back to the previous version of the application.