I want to implement weight-based routing and then be able to inject a fault within one of the destinations. Is this possible?
Example: I have 2 services with weight based routing of 70-30. For service-1, which receives 70% of the traffic, I want to inject a fault of 503 50% of the time. For service-2, which receives 30% of the traffic is always successful.
Is there a way to configure this in Istio? I have tried several options, but have not been successful in getting the required behavior.
I don’t get an error; however, I never get the fault to happen.
What you show in the yaml is what I had been testing with. The
weight-based routing works, but I never get the fault.