Created
April 26, 2020 12:39
-
-
Save bharatmicrosystems/3f7c9b1f80ed79103e8ce773a7dfb225 to your computer and use it in GitHub Desktop.
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: Gateway | |
metadata: | |
name: bookinfo-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: bookinfo | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- bookinfo-gateway | |
http: | |
- match: | |
- uri: | |
exact: /productpage | |
- uri: | |
prefix: /static | |
- uri: | |
exact: /login | |
- uri: | |
exact: /logout | |
- uri: | |
prefix: /api/v1/products | |
route: | |
- destination: | |
host: productpage | |
port: | |
number: 9080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment