Created
October 10, 2018 12:46
-
-
Save k/39a5cba23d5ad8d238ec13ecc93edef5 to your computer and use it in GitHub Desktop.
Istio VirtualService Example yaml file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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