Search code examples
azure-service-fabric

How to share a port in Azure Service Fabric using Kestrel


I have multiple Service Fabric APIs. Both services are hosted in the same cluster using Kestrel. Currently each service is assigned to a specific port so they show up as

http://service1:123 and

http://service2:456

I would like to access the services using default port 80 for both. Is there a way to do this without having to use Azure API Management?


Solution

  • Sure, Kestrel doesn't support port sharing, but you can: