March 2020
Intermediate to advanced
626 pages
14h 45m
English
Virtual service is an Istio configuration primitive that's created through a custom resource definition in Kubernetes. It dynamically defines how traffic destined for an internet domain name flows to a set of services inside the Kubernetes cluster, and this is all dynamic. This means that the traffic can stream to any service within the mesh based on certain rules.
The following virtual service forwards all traffic coming from the Ingress gateway to the productpage service in an istio-lab namespace. The virtual service binds to a specific gateway. Remember that the virtual service can be changed dynamically—this is the loose coupling between a gateway and a microservice:
apiVersion: networking.istio.io/v1alpha3kind: VirtualService ...
Read now
Unlock full access