Route to external site via Istio Virtual Service

2/12/2019

I'm working on a side project to learn Istio in my spare time, part of which is getting my hands dirty with Istio routing.

I'm trying to setup a Virtual Service such that any traffic on "/" gets routed to google.com. I can get Virtual Services to work with any in-cluster pods/services, but I can't seem to configure Istio to route to anything outside the cluster.

Any guidance would be much appreciated, cheers

-- Kit Freddura
istio
kubernetes

2 Answers

2/13/2019

Configure a service entry for google.com. Refer this documentation overall, and precisely this.

-- mjkool
Source: StackOverflow

2/13/2019

You have to create a Service Entry for google.com and then create a Virtual Service, referencing google.com in the same way as in-mesh services. Note the issue of the protocols - do you want to access google.com by HTTP or HTTPS? You may want to let Istio perform TLS origination for you.

-- Vadim Eisenberg
Source: StackOverflow