Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: rev-proxy
spec:
hosts:
- {{ YOUR_API_HOSTNAME_HERE }}
gateways:
- istio-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
host: rev-proxy.dev.svc.cluster.local
port:
number: 80
weight: 100
corsPolicy:
allowOrigin:
- {{ YOUR_UI_HOSTNAME_HERE }}
allowMethods:
- OPTIONS
- GET
allowCredentials: true
allowHeaders:
- "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment