Configure Istio Ingress Gateway
Store the name of your namespace in the environment variable. You will need it to recognize your microservices in the logs:
Create an environment variable for the hostname of the Istio ingress gateway:
$ export MY_INGRESS_GATEWAY_HOST=istio.$NAMESPACE.bookinfo.com
$ echo $MY_INGRESS_GATEWAY_HOST
istio.tutorial.bookinfo.com
Configure an Istio ingress gateway:
Add the output of this command to your
/etc/hosts
file:$ echo $INGRESS_HOST $MY_INGRESS_GATEWAY_HOST
Paste the output of the following command in your browser address bar:
$ echo http://$MY_INGRESS_GATEWAY_HOST:$INGRESS_PORT/productpage
Simulate real-world user traffic to your application by setting an infinite loop in a new terminal window:
At this point you can stop sending requests through the Kubernetes Ingress and use Istio Ingress Gateway only. Stop the infinite loop (
Ctrl-C
in the terminal window) you set in the previous steps. In a real production environment, you would update the DNS entry of your application to contain the IP of Istio ingress gateway or configure your external Load Balancer.Delete the Kubernetes Ingress resource:
ingress.extensions "bookinfo" deleted
In a new terminal window, restart the real-world user traffic simulation as described in the previous steps.
Check your graph in the Kiali console. After about a minute, you will see the Istio Ingress Gateway as a single source of traffic for your application.
You are ready to configure .