Open sivachinnayan opened 8 years ago
Register local node to consul server via REST API.
curl -H "Content-Type: application/json" -X POST -d '{"Datacenter":"dc1","Node":"foobar","Address":"192.168.10.86","TaggedAddresses":{"lan":"192.168.30.76","wan":"10.0.10.10"},"Service":{"ID":"redis1","Service":"redis","Tags":["master","v1"],"Address":"127.0.0.1","Port":8000},"Check":{"Node":"foobar","CheckID":"service:redis1","Name":"Redis health check","Notes":"Script based health check","Status":"passing","ServiceID":"redis1"}}' http://192.168.30.79:8500/v1/catalog/register
How to join a third party node to Consul, Example. I want to join my localbox to consul running on local network. I can follow the below steps to acheive it.
Join to Consul Server running on local network