Help Center/
Ubiquitous Cloud Native Service/
User Guide/
Service Mesh/
Traffic Management/
Service Route/
Creating a Service Route
Updated on 2025-04-25 GMT+08:00
Creating a Service Route
Creating a Service Route Using YAML
The following uses an HTTP matching condition as an example to describe how to create a service route using YAML.
- 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 > Service Router.
- 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: VirtualService metadata: name: ratings-route spec: hosts: - ratings.prod.svc.cluster.local http: - match: - headers: end-user: exact: jason uri: prefix: "/ratings/v2/" route: - destination: host: ratings.prod.svc.cluster.local
- Click OK.
Parent topic: Service Route
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