• intercept and direct traffic to your Kubernetes services, allowing you to divide percentages of traffic from a request to different services. You can use them to define a set of routing rules to apply when a host is addressed.

    This section describes how to add an example virtual service that corresponds to the microservice in the sample BookInfo app. The purpose of this service is to divide traffic between two versions of the reviews service.

    After this virtual service is deployed, we will generate traffic and see from the Kiali visualization that traffic is being routed evenly between the two versions of the service.

    1. Go to the project view and click Import YAML.
    2. Click Import.

    Result: When you generate traffic to this service (for example, by refreshing the ingress gateway URL), the Kiali traffic graph will reflect that traffic to the service is divided evenly between v1 and v3.