Container Service for Kubernetes (ACK) allows you to release an application to clusters in different regions. You can also perform canary releases of an application among multiple clusters based on regions. This topic describes how to perform a canary release based on regions after the orchestration template is updated. In this example, Cluster A in the China (Beijing) region still uses the original application version, and Cluster B in the China (Hangzhou) region uses the new application version.
Prerequisites
Background information
Step 1: Deploy an application in Cluster A and Cluster B
In this topic, an application is deployed in both clusters. The color that appears on the application page is red. For more information, see Use an orchestration template to deploy an application to multiple clusters.
Step 2: Update the orchestration template
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, choose .
- On the Templates page, find the orchestration template that is used to deploy the application and click Details below the template name.
- Change the image registry to
registry.cn-hangzhou.aliyuncs.com/acs/rollouts-demo:green
in the template. Click Create.
Step 3: Configure a canary release of the application
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, choose .
- On the Application Center page, find the application and click Create Change in the Actions column.
- In the Create Change step, click Next.
- In the Release Configurations step, select Cluster B in the Cluster section and click Release Now.
- In the Confirm Release message, click OK.