From the course: Kubernetes: Service Mesh with Istio

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Review response injection

Solution: Review response injection - Kubernetes Tutorial

From the course: Kubernetes: Service Mesh with Istio

Start my 1-month free trial

Solution: Review response injection

(jingling music) - [Instructor] So in this module, we're going to look at a response, or a result, or way to resolve the abort challenge, so we're going to do an ls on our directory here, and then we can do more on our abort challenge, A + Tab will get us there, Abort_Challenge_Solution file. We can see that really, all that we're going to do is we're going to change the percentage in our virtual service that did aborts from 100% to 50%, and then we're going to just loop through the curl command that we were using to test that abort. We're going to loop through it, in this case, 10 times, that's what this little for-loop should do for us, and about half of the time, we should get the result, or version one output, and then the other half of the time we should get an abort error coming out of the system, so, the first thing that we have to do is, we have to edit our virtual service, so we're just going to do that real quick, V-I hostname and then we're going to go for a slash to look…

Contents