Created
November 27, 2017 23:08
-
-
Save shalako/86618700452f154dd5a1d3eaa858e6b0 to your computer and use it in GitHub Desktop.
This file contains 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 localhost/v1/routes/:route_config_name/:service_cluster/:service_node | |
{ | |
"virtual_hosts": [ | |
{ | |
"name": "...", | |
"domains": [ | |
"<route uri>" | |
], | |
"routes": [ | |
{ | |
"prefix": "/", | |
"weighted_clusters" : { | |
{ | |
"clusters": [ | |
{ | |
"name" : "...", | |
"weight": 100 | |
} | |
] | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
$ curl localhost/v1/clusters/:service_cluster/:service_node | |
{ | |
"clusters": [ | |
{ | |
"name": "...", | |
"type": "sds", | |
"connect_timeout_ms": "...", | |
"lb_type": "round-robin", | |
"service_name": "<same as name>" | |
} | |
] | |
} | |
$ curl localhost/v1/registration/:service_name | |
{ | |
"hosts": [ | |
{ | |
"ip_address": "...", | |
"port": "...", | |
}, | |
{ | |
"ip_address": "...", | |
"port": "...", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment