How to register service with multiple ports?

My service has multiple ports, eg: 8080 for external HTTP API, 9090 for internal gRPC API… How can I specify multiple ports for my service?

Additionally I want to use Consul service mesh, how can I map port between service and it’s sidecar proxy?

1 Like

Hi @tunh,

Sorry for the late reply. Currently Consul does not support associating multiple ports to a single service or sidecar proxy. However this is a feature we would like to implement in the future. Here is the GitHub issue we’re using to track this feature request.

Feel free to give a :+1: to show your interest in that feature, and leave a comment with any additional details that might help us better understand your use case.

3 Likes

Thank you @blake ! So excited, can not wait for this useful feature.

1 Like