istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/helloworld/helloworld-gateway.yaml (about) 1 apiVersion: networking.istio.io/v1alpha3 2 kind: Gateway 3 metadata: 4 name: helloworld-gateway 5 spec: 6 selector: 7 istio: ingressgateway # use istio default controller 8 servers: 9 - port: 10 number: 80 11 name: http 12 protocol: HTTP 13 hosts: 14 - "*" 15 --- 16 apiVersion: networking.istio.io/v1alpha3 17 kind: VirtualService 18 metadata: 19 name: helloworld 20 spec: 21 hosts: 22 - "*" 23 gateways: 24 - helloworld-gateway 25 http: 26 - match: 27 - uri: 28 exact: /hello 29 route: 30 - destination: 31 host: helloworld 32 port: 33 number: 5000