Robert Smith
Robert Smith

Reputation: 385

Istio VirtualService Networking outside of cluster

I have a monolithic application that is being broken down into domains that are microservices. The microservices live inside a kubernetes cluster using the istio service mesh. I'd like to start replacing the service components of the monolith little by little. Given the UI code is also running inside the cluster, microservices are inside the cluster, but the older web api is outside the cluster, is it possible to use a VirtualService to handle paths I specify to a service within the cluster, but then to forward or proxy the rest of the calls outside the cluster?

enter image description here

Upvotes: 1

Views: 609

Answers (1)

Peter Claes
Peter Claes

Reputation: 335

You will have to define a ServiceEntry so Istio will be aware of your external service. That ServiceEntry can be used as a destination in a VirtualService. https://istio.io/latest/docs/reference/config/networking/virtual-service/#Destination

Upvotes: 1

Related Questions