Created
January 14, 2019 03:16
-
-
Save garystafford/0d03ebbb02480893d679bd95a43ce25f 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: storefront-gateway | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- port: | |
number: 443 | |
name: https | |
protocol: HTTPS | |
tls: | |
mode: SIMPLE | |
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt | |
privateKey: /etc/istio/ingressgateway-certs/tls.key | |
hosts: | |
- dev.api.storefront-demo.com | |
- test.api.storefront-demo.com | |
- uat.api.storefront-demo.com | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: storefront-dev | |
spec: | |
hosts: | |
- dev.api.storefront-demo.com | |
gateways: | |
- storefront-gateway | |
http: | |
- match: | |
- uri: | |
prefix: /accounts | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: accounts.dev.svc.cluster.local | |
- match: | |
- uri: | |
prefix: /fulfillment | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: fulfillment.dev.svc.cluster.local | |
- match: | |
- uri: | |
prefix: /orders | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: orders.dev.svc.cluster.local | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: storefront-test | |
spec: | |
hosts: | |
- test.api.storefront-demo.com | |
gateways: | |
- storefront-gateway | |
http: | |
- match: | |
- uri: | |
prefix: /accounts | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: accounts.test.svc.cluster.local | |
- match: | |
- uri: | |
prefix: /fulfillment | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: fulfillment.test.svc.cluster.local | |
- match: | |
- uri: | |
prefix: /orders | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: orders.test.svc.cluster.local | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: storefront-uat | |
spec: | |
hosts: | |
- uat.api.storefront-demo.com | |
gateways: | |
- storefront-gateway | |
http: | |
- match: | |
- uri: | |
prefix: /accounts | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: accounts.uat.svc.cluster.local | |
- match: | |
- uri: | |
prefix: /fulfillment | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: fulfillment.uat.svc.cluster.local | |
- match: | |
- uri: | |
prefix: /orders | |
route: | |
- destination: | |
port: | |
number: 8080 | |
host: orders.uat.svc.cluster.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment