But how to call it with Istio? Why I would like to call with Istio is, consider the following scenario:
There are two version of RATINGS service V1 and V2. 40% of the traffic should go to V1 and rest to V2. For that, I going to create a Destion Rule. The question is, when I call the RATINGS service with curl ratings:9080, the Destion Rule will be applied or not?
(Note that the above destination rule assumes you have two deployments of Ratings (e.g. ratings-v1 and ratings-v2) and the pods have the version:v1 or version:v2 labels set.
Once you have the destination rule deployed, you can update the VirtualService where you can split the traffic based on the subsets you defined in the destination rule. For example: