Last active
January 19, 2021 16:27
-
-
Save berinle/0d92d5caa24545702e83fe6a1c8a0ea8 to your computer and use it in GitHub Desktop.
working_istio_vs_react
This file contains hidden or 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: Gateway | |
| metadata: | |
| name: foo-gateway | |
| spec: | |
| selector: | |
| istio: ingressgateway # use istio default controller | |
| servers: | |
| - port: | |
| number: 80 | |
| name: http | |
| protocol: HTTP | |
| hosts: | |
| - "*" | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: VirtualService | |
| metadata: | |
| name: foo-vs | |
| spec: | |
| hosts: | |
| - "*" | |
| gateways: | |
| - foo-gateway | |
| http: | |
| - match: | |
| - uri: | |
| prefix: "/foo" | |
| rewrite: | |
| uri: "/" | |
| route: | |
| - destination: | |
| host: foo | |
| port: | |
| number: 80 | |
| - match: | |
| - uri: | |
| prefix: "/static" | |
| - uri: | |
| regex: '^.*\.(ico|png|jpg)$' | |
| route: | |
| - destination: | |
| host: foo | |
| port: | |
| number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment