Skip to content

Instantly share code, notes, and snippets.

@garystafford
Created April 15, 2019 01:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/b8cc4dccdcc39c3e6537e93c54f322bf to your computer and use it in GitHub Desktop.
Save garystafford/b8cc4dccdcc39c3e6537e93c54f322bf to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: service-rev-proxy
spec:
hosts:
- api.dev.example-api.com
gateways:
- demo-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
host: service-rev-proxy.dev.svc.cluster.local
weight: 100
corsPolicy:
allowOrigin:
- "*"
allowMethods:
- OPTIONS
- GET
allowCredentials: true
allowHeaders:
- "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment