Created
June 13, 2023 06:47
-
-
Save strongant/7556da1c98a02bd1c694086c65bd9321 to your computer and use it in GitHub Desktop.
consul register service curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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