Help Center/
Ubiquitous Cloud Native Service/
User Guide/
Service Mesh/
Grayscale Release/
Updating a Grayscale Release/
Weight-based Traffic Distribution
Updated on 2025-07-30 GMT+08:00
Weight-based Traffic Distribution
ASM supports weight-based traffic distribution.
Updating Weight-based Traffic Distribution on the Console
- Log in to the UCS console. In the navigation pane, choose Service Meshes.
- Click the name of the target service mesh to go to its details page.
- In the navigation pane, choose Service Center > Mesh Services.
- Click the service name to go to the details page.
- Click the tab for displaying grayscale releases and select the grayscale release update option.
- Reset the traffic weight parameter in the target service for weight-based traffic distribution.
Editing Parameters for Weight-based Traffic Distribution Using YAML
Select YAML for Current Data and edit the parameters in the editing area. The following are the parameters in the YAML file. (Configure the parameters based on site requirements.)
apiVersion: v1 kind: VirtualService metadata: name: reviews-route spec: hosts: - reviews.prod.svc.cluster.local http: - route: - destination: host: reviews.prod.svc.cluster.local subset: v2 weight: 25 # Set the weight. - destination: host: reviews.prod.svc.cluster.local subset: v1 weight: 75 # Set the weight.
Parent topic: Updating a Grayscale Release
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot