Signed-off-by: xinhui li <xinhui.li@salesforce.com>
Change-Id: I864bc18127b1dbec8c0d3c0990964f277157242d
--- /dev/null
+apiVersion: networking.istio.io/v1alpha3
+kind: Gateway
+metadata:
+ name: httpbin-gateway
+spec:
+ selector:
+ istio: ingressgateway # use Istio default gateway implementation
+ servers:
+ - port:
+ number: 80
+ name: http
+ protocol: HTTP
+ hosts:
+ - "a25fa0b4835bf460588ee5002b857c36-1ccd5b150ee87ab2.elb.us-west-2.amazonaws.com"
+---
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
+metadata:
+ name: httpbin
+spec:
+ hosts:
+ - "a25fa0b4835bf460588ee5002b857c36-1ccd5b150ee87ab2.elb.us-west-2.amazonaws.com"
+ gateways:
+ - httpbin-gateway
+ http:
+ - match:
+ - uri:
+ prefix: /status
+ - uri:
+ prefix: /delay
+ - uri:
+ prefix: /headers
+ route:
+ - destination:
+ port:
+ number: 8000
+ host: httpbin
+