March 2020
Intermediate to advanced
626 pages
14h 45m
English
Let's define a virtual service for bookinfo.istio.io so that the gateway knows the URI matches and patterns it requires to send requests to the productpage.istio-lab.svc.cluster.local hostname on port 9080:
# Script : 03-create-virtual-service-for-bookinfo.yamlapiVersion: networking.istio.io/v1alpha3kind: VirtualServicemetadata: name: bookinfospec: hosts: - bookinfo.istio.io gateways: - mygateway http:... route: - destination: host: productpage.istio-lab.svc.cluster.local port: number: 9080
$ kubectl -n istio-system apply -f 03-create-virtual-service-for-bookinfo.yaml virtualservice.networking.istio.io/bookinfo configured ...
Read now
Unlock full access