INSTALL ISTIO

https://github.com/istio/istio/releases/download/1.9.0/istio-1.9.0-win.zip

Add istio/bin folder to your PATH environment variable, on Windows

Istio comes with Grafana, Kiali, Prometheus, and Jaeger pre-configured to deploy with Istio using the istioctl command line. To install these tools, run the following command:

Check if istioctl is installed

istioctl version

Install istio

istioctl install --set profile=demo -y

Check namespaces created

kubectl get ns

Get istio pods

kubectl get pods -n istio-system

Para que istio inyecte esos sidecard en todos los pods de un namespace

kubectl label namespace default istio-injection=enabled

Aplicamos algún manifiesto kubernetes

kubectl apply -f example-app.yaml

Descibimos el pod

kubectl describe pod example-app-6f9f9b7b7f-4q9qj

Podemos ver que en el pod se ha añadido un sidecar de istio (istio-proxy)

Kiali (Dashboard)

Kiali es un dashboard que nos permite visualizar la topología de nuestra aplicación, así como las llamadas entre los distintos servicios.

istioctl dashboard kiali

Gateway

Creamos el archivo gateway.yaml para crear un gateway de istio y lo aplicamos

kubectl apply -f gateway.yaml