Using Istio
In this guide, we will create ServiceEntry for our external HyperTest logger service and mirror traffic to it using Istio.
Brief Steps:
Create a new Service Entry for HyperTest logger
Add route rule in Virtual Service to mirror traffic to it
1. Create Service Entry
Here we are creating a new Service Entry for Hypertest. The hosts can be anything here as we have used resolution as STATIC so it will use endpoint address.
Create the ServiceEntry using the below command:
2. Add Mirror section to Virtual Service
Now we will add mirror route rule in application's virtual service and point it to host defined in service entry.
Only copy the parts from ## copy from this till ## to this. Rest is just sample Virtual Service file.
Update your application's Virtual Service by the follwoing command:
To Verify the mirroring setup, hit any api on the application and check for request in "last mirrored requests" section or Session page in HyperTest.
Last updated