Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (49 sloc) 922 Bytes
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: storefront-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- api.dev.storefront-demo.com
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: accounts
spec:
hosts:
- api.dev.storefront-demo.com
gateways:
- storefront-gateway
http:
- match:
- uri:
prefix: /accounts
route:
- destination:
port:
number: 8080
host: accounts.dev.svc.cluster.local
- match:
- uri:
prefix: /fulfillment
route:
- destination:
port:
number: 8080
host: fulfillment.dev.svc.cluster.local
- match:
- uri:
prefix: /orders
route:
- destination:
port:
number: 8080
host: orders.dev.svc.cluster.local