Basic operations on a grayscale version are performed by modifying the configuration of the DestinationRule and VirtualService resources of Istio. After the modification is complete, wait for about 10 seconds for the new policy to take effect.
Modifying a grayscale policy that is based on traffic ratio
For such a grayscale policy that is based on traffic ratio, you can gradually increase the traffic ratio of the grayscale version to avoid service risks caused by direct traffic switchover. To change the traffic ratio, perform the following steps:
If the traffic ratio of the grayscale version is set to x, the traffic ratio of the original version is automatically adjusted to 100-x.
Modifying a grayscale policy that is based on request content
With such a policy, a grayscale version can be accessed only when the traffic meets the rules based on Cookies, Headers, Queries, Allowed Operating Systems, and Allowed Browsers. In real-world use cases, rules may be modified for multiple times to fully verify the performance of the grayscale version.
You can change the type of a grayscale policy from based on request content to based on traffic ratio and vice versa. After this operation is complete, all configured rules become invalid and all traffic is redistributed based on the new policy.
Grayscale policies can be changed only for running tasks. After a grayscale version is released (that is, the new version completely takes over the traffic and the old version has been brought offline), its grayscale policy cannot be reconfigured.
After you click Take Over All Traffic, the original version or grayscale version takes over all traffic.
After the grayscale version takes over all traffic, you can terminate the grayscale task. After the grayscale task is canceled, the original version will be brought offline, and all workloads and Istio configuration resources will be deleted.
You can go to the Terminated Tasks tab page to view the finished grayscale task. The Release Result is Released successfully.
After the original version takes over all traffic, you can cancel the grayscale task.
in the upper right corner of a task in the grayscale task list.You can go to the Terminated Tasks tab page to view the finished grayscale task. The Release Result is Released canceled.
You can view canceled and finished grayscale tasks on the Terminated Tasks tab page.
You can view the release task name, release result, service, and release time, and delete a terminated task.