How it works…

Once the command has executed successfully the Consul agent starts running in server mode, giving us the following output:

We can also list the members of the Consul cluster by executing the following command:

$ consul members

This will give us the following result:

Because Consul can be run either in server or client mode with at least one server, to keep the setup at a bare minimum we have started our agent in server mode, though it is not recommended because there are chances of data loss in a failure scenario. 

Moreover, browsing to http://localhost:8500/ui/ will display the Consul web UI where we can view all the services and nodes, as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.148.210