Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created May 9, 2019 13:17
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 chanwit/71d3787ff06326355168a526adc6641e to your computer and use it in GitHub Desktop.
Save chanwit/71d3787ff06326355168a526adc6641e to your computer and use it in GitHub Desktop.
---
apiVersion: ambassador/v1
kind: Mapping
name: productpage_v1_mapping
prefix: /app
service: https://productpage-v1-fpszyetfsa-uc.a.run.app
host_rewrite: productpage-v1-fpszyetfsa-uc.a.run.app
---
apiVersion: ambassador/v1
kind: Mapping
name: details_v1_mapping
prefix: /gw/details
service: https://details-v1-fpszyetfsa-uc.a.run.app
host_rewrite: details-v1-fpszyetfsa-uc.a.run.app
---
apiVersion: ambassador/v1
kind: Mapping
name: details_v2_mapping
prefix: /gw/details
headers:
end-user: test
service: https://details-v2-fpszyetfsa-uc.a.run.app
host_rewrite: details-v2-fpszyetfsa-uc.a.run.app
---
apiVersion: ambassador/v1
kind: Mapping
name: reviews_v1_mapping
prefix: /gw/reviews
service: https://reviews-v1-fpszyetfsa-uc.a.run.app
host_rewrite: reviews-v1-fpszyetfsa-uc.a.run.app
weight: 100
---
apiVersion: ambassador/v1
kind: Mapping
name: ratings_v1_mapping
prefix: /gw/ratings
service: https://ratings-v1-fpszyetfsa-uc.a.run.app
host_rewrite: ratings-v1-fpszyetfsa-uc.a.run.app
weight: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment