Ambassador: Need to support multiple APIs for a service

Created on 16 Mar 2018  路  4Comments  路  Source: datawire/ambassador

Hi
Can I expose multiple APIs with a Service ?
The current examples show only a single prefix in the annotations. What do I do to expose multiple APIs ?
I am using Ambassador 0.28.
Rgds
nilanjan

Most helpful comment

We don't have any sample YAML, but it works like anything else, e.g.,

Mapping: xxx
Prefix: yyy
---
Mapping: zzz
Prefix: aaa

Or you can create multiple Kubernetes objects.

All 4 comments

Can you give an example of what you're trying to do?

You can create multiple Mapping objects, each of which can map a prefix to a service. You can have multiple Mapping objects that map to the same service, if you like.

Hi Richard

do we have any such sample yaml...or it is like we give different URL in prefix with comma separated http name or list?

regards
Satish

We don't have any sample YAML, but it works like anything else, e.g.,

Mapping: xxx
Prefix: yyy
---
Mapping: zzz
Prefix: aaa

Or you can create multiple Kubernetes objects.

Thanks !! This worked for me. :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vkamra picture vkamra  路  5Comments

josephglanville picture josephglanville  路  3Comments

klarose picture klarose  路  5Comments

cakuros picture cakuros  路  4Comments

aroundthecode picture aroundthecode  路  4Comments