Signed-off-by: xinhui li <xinhui.li@salesforce.com>
Change-Id: I6e123b09cb69f8b0247ccdc276cbb082d10572b6
--- /dev/null
+apiVersion: networking.istio.io/v1alpha3
+kind: Gateway
+metadata:
+ name: mygateway2
+spec:
+ selector:
+ istio: ingressgateway # use istio default ingress gateway
+ servers:
+ - port:
+ number: 443
+ name: https
+ protocol: HTTPS
+ tls:
+ mode: SIMPLE
+ credentialName: httpbin-credential # must be the same as secret
+ hosts:
+ - "acb7ca2ca2f3a498c822f3786553a075-7fb58ba389cbc75b.elb.us-west-2.amazonaws.com"
+---
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
+metadata:
+ name: httpbin
+spec:
+ hosts:
+ - "acb7ca2ca2f3a498c822f3786553a075-7fb58ba389cbc75b.elb.us-west-2.amazonaws.com"
+ gateways:
+ - mygateway2
+ http:
+ - match:
+ - uri:
+ prefix: /status
+ - uri:
+ prefix: /delay
+ - uri:
+ prefix: /headers
+ route:
+ - destination:
+ port:
+ number: 8000
+ host: httpbin