Help Center/
Ubiquitous Cloud Native Service/
User Guide/
Service Mesh/
Traffic Management/
Traffic Policies/
Creating a Traffic Policy
Updated on 2025-04-25 GMT+08:00
Creating a Traffic Policy
Creating a Traffic Policy Using YAML
To create a traffic policy using YAML, perform the following steps:
- 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 Traffic Governance > Traffic Policy.
- Click Create from YAML in the upper right corner.
- Select YAML for Current Data and edit the configuration in the editing area. (Configure the parameters based on site requirements.)
apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata: name: forecast namespace: weather spec: host: forecast subsets: - name: v2 labels: version: v2 trafficPolicy: loadBalancer: simple: ROUND_ROBIN - name: v1 labels: version: v1
- Click OK.
Parent topic: Traffic Policies
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