1
votes

If there is only one consul node, it can config consul like following:

spring:

cloud: consul: host: localhost port: 8500

But if there is consul cluster, for example there are three concul nodes. in this case, how to config the consul? Do it need DNS to route the host name to multi IP address?

1

1 Answers

1
votes

you should run a consul agent in client mode on a node and join consul cluster. then run your spring boot instance on this node and connect to this consul agent.