Skip to content

Instantly share code, notes, and snippets.

@strongant
Created June 13, 2023 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strongant/7556da1c98a02bd1c694086c65bd9321 to your computer and use it in GitHub Desktop.
Save strongant/7556da1c98a02bd1c694086c65bd9321 to your computer and use it in GitHub Desktop.
consul register service curl
curl -XPUT -d '{"ID":"app-bz-paas-mysql-demo-sit-1","Name":"app-bz-paas-mysql-demo-sit-test","Tags":["test"], "Address":"10.244.130.105","Port":12002,"Check":{"DeregisterCriticalServiceAfter": "10s","Name":"MySQL-demo-test Service Check","http":"http://10.244.130.105:12002/actuator/health","Interval":"5s", "Timeout": "5s"}}' http://consul-cluster-address/v1/agent/service/register?replace-existing-checks=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment