Skip to content

Commit 7ee6543

Browse files
committed
Updated virtual service routing rule
1 parent 3d1b76f commit 7ee6543

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

extensions/istio-service-mesh/intelligent-req-routing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Thus far, three different versions of the Claims API microservice have been depl
77

88
End-point to view the OpenAPI spec for the Claims Web API : http://[Istio Ingress Gateway ALB Public IP]/swagger/index.html
99

10-
In this section, we will configure the Virtual Service **claims-api-vs** to route all API requests to the default version of the microservice. The default version in this case will be the latest version **v3**. The latest version v3 includes all the enhancements made to the Claims API microservice.
10+
In this section, we will configure the Virtual Service **claims-api-vs** to route all API requests to the default version of the microservice. The default version in this case will be the latest version **v3** which also exposes the OpenAPI spec. The latest version v3 includes all the enhancements made to the Claims API microservice.
1111

12-
Edit/View the Virtual Service resource file `./istio-resources/claims-api-vs.yaml` to understand how the service is configured to route all API requests that don't match the prefix context path `/api/v1/claims`, to version v3 of the Claims API. Keep in mind, the order of the routing rules in the Virtual Service resource is very important!
12+
Edit/View the Virtual Service resource file `./istio-resources/claims-api-vs.yaml` to understand how the service is configured to route all API requests to version v3 of the Claims API.
1313

1414
Refer to the command snippet below to apply the **Claims-api-vs** Virtual Service on the service mesh.
1515

extensions/istio-service-mesh/intelligent-req-routing/istio-resources/claims-api-vs.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ spec:
1212
- match:
1313
- uri:
1414
prefix: /api/v1/claims
15+
- uri:
16+
prefix: /swagger
1517
route:
1618
- destination:
1719
host: claims-api
18-
port:
19-
number: 9080
20-
- route:
21-
- destination:
22-
host: claims-api
23-
port:
24-
number: 9080
2520
subset: v3

0 commit comments

Comments
 (0)