Skip to content

Instantly share code, notes, and snippets.

@shalako
Created November 27, 2017 23:08
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 shalako/86618700452f154dd5a1d3eaa858e6b0 to your computer and use it in GitHub Desktop.
Save shalako/86618700452f154dd5a1d3eaa858e6b0 to your computer and use it in GitHub Desktop.
$ 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