March 2020
Intermediate to advanced
626 pages
14h 45m
English
VirtualService connects a Kubernetes service to the Istio gateway. It can do many things. We will look at this in detail as we go through the following code and explain the different traffic management capabilities:
# Script : 01-create-virtual-service.yamlapiVersion: networking.istio.io/v1alpha3kind: VirtualServicemetadata: name: bookinfospec: hosts: - "*" gateways: - mygateway http: - match: - uri: exact: /productpage - uri: prefix: /static - uri: exact: /login - uri: exact: /logout - uri: prefix: /api/v1/products route: - destination: host: productpage.istio-lab.cluster.svc.local port: number: 9080
The traffic for booksinfo.istio.io, which resolves to ...
Read now
Unlock full access