Skip to content

Instantly share code, notes, and snippets.

@k
Created October 10, 2018 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k/39a5cba23d5ad8d238ec13ecc93edef5 to your computer and use it in GitHub Desktop.
Save k/39a5cba23d5ad8d238ec13ecc93edef5 to your computer and use it in GitHub Desktop.
Istio VirtualService Example yaml file
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: proxy
spec:
gateways:
- web-gateway
hosts:
- '*'
http:
- match:
- port: 8080
uri:
regex: /login.*
route:
- destination:
host: web-proxy-v2
port:
number: 8080
corsPolicy:
allowOrigin:
- '*'
allowMethods:
- POST
- GET
- OPTIONS
allowHeaders:
- content-type
- namespace
- auth-token
maxAge: 300s
allowCredentials: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment