Difficulty: Advanced
Estimated Time: 1 hour

In this chapter we will learn how to perform the following use cases with Istio

  • Smart routing based on user-agent header (Canary Deployment)
  • Access Control
  • Load Balancer
  • Rate limit

Download the ebook "Introducing Istio Service Mesh for Microservices" for FREE at https://developers.redhat.com/books/introducing-istio-service-mesh-microservices/.

You can also run this tutorial on your machine, visit http://bit.ly/istio-tutorial.

Advanced RouteRules

Step 1 of 5

Install microservices

Before we start this scenario, we need to deploy all microservices (customer, preference, recommendation[v1:v2]).

There's a script called install-microservices.sh that will

Execute this script: ./install-microservices.sh

The script will take between 2-5 minutes to complete. Don't worry if you see error messages.

When the scripts ends, watch the creation of the pods, execute oc get pods -w

Once that the microservices pods READY column are 2/2, you can hit CTRL+C.

Try the microservice by typing curl http://customer-tutorial.[[HOST_SUBDOMAIN]]-80-[[KATACODA_HOST]].environments.katacoda.com

It should return:

customer => preference => recommendation v{1:2} from {hostname}: 1

This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]