Signed-off-by: xinhui li <xinhui.li@salesforce.com>
Change-Id: I9b24b1d15d5081f388252c447049cc23bf9f94c0
--- /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: 443
+ name: https
+ protocol: HTTPS
+ hosts:
+ - "*"
+---
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
+metadata:
+ name: httpbin
+spec:
+ hosts:
+ - "*"
+ gateways:
+ - httpbin-gateway
+ http:
+ - match:
+ - uri:
+ prefix: /headers
+ route:
+ - destination:
+ port:
+ number: 8443
+ host: httpbin