Difficulty: Basic
Estimated Time: 30 minutes

This Scenario will present you the concept of Service Mesh and why we need it.

Then you will be introduced to terms like Mixer, Pilot and Proxy/Sidecar

Finally, you will learn how to install Istio on a Kubernetes/OpenShift cluster

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.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Connecting and Controlling Microservices

Step 1 of 2

Traffic Shaping Microservices Connections

Revisamos los pods de Istio: oc get pods -w -n istio-system Cuando todos este en estado Running, podemos presionar CTRL+C.

oc apply -f <(istioctl kube-inject -f ~/installation/istio-1.0.2/samples/bookinfo/platform/kube/bookinfo.yaml)

Revisamos los pods de la aplicación de Demo: oc get pods Cuando todos este en estado Running, podemos presionar CTRL+C.

Gateway oc apply -f ~/installation/istio-1.0.2/samples/bookinfo/networking/bookinfo-gateway.yaml

Destination rules: oc apply -f ~/installation/istio-1.0.2/samples/bookinfo/networking/destination-rule-all-mtls.yaml

Virtual Services, Enviemos todo el trafico a la versión 1 del servicio Reviews: oc apply -f ~/installation/istio-1.0.2/samples/bookinfo/networking/virtual-service-reviews-v2-v3.yaml

Generemos tráfico con Postman

Enviemos todo el trafico a la versión 2 de todos los servicios: oc apply -f ~/installation/istio-1.0.2/samples/bookinfo/networking/virtual-service-reviews-v2.yaml

Virtual Services: oc apply -f ~/installation/istio-1.0.2/samples/bookinfo/networking/virtual-service-reviews-v3.yaml