Integration with consul #7279
Replies: 8 comments
-
There has been an occasional request, but since consul exposes a dns interface, that is generally used. |
Beta Was this translation helpful? Give feedback.
-
Consul dns response ttl is 0 by default, that means Kong will have to query every time it has a request which will cause high latency. |
Beta Was this translation helpful? Give feedback.
-
That is a logical consequence. I'd advise not to use |
Beta Was this translation helpful? Give feedback.
-
@tzahimizrahi does this answer your question or did you have something else in mind? |
Beta Was this translation helpful? Give feedback.
-
@subnetmarco DNS resolution is good however I hoped to find an integration with Consul service catalog which is a more reliable and relevant method for high rate scaling services echo systems |
Beta Was this translation helpful? Give feedback.
-
@tzahimizrahi the request would be to integrate with their Catalog HTTP API in order to list nodes for a service and proxy to those nodes? Could you please describe the behavior you would like to see in Kong? |
Beta Was this translation helpful? Give feedback.
-
@subnetmarco right. the implementation should include a watch on consul services catalog that trigger an update Kong beckend upstream according to a service node health change. |
Beta Was this translation helpful? Give feedback.
-
@subnetmarco there is some limited in consul dns interface, the service and tag names in consul should't allow some characters like dot. FYI. |
Beta Was this translation helpful? Give feedback.
-
I'll give a shoot here.
Is there a future plan to add Integration with Consul service discovery?
Beta Was this translation helpful? Give feedback.
All reactions