Skip to content

Instantly share code, notes, and snippets.

@ambuc
Last active Sep 5, 2018
Embed
What would you like to do?
example envoy --config-path <path> file
{
"staticResources": {
"listeners": [
{
"name": "listener0",
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 26300
}
},
"filterChains": [
{
"filters": [
{
"name": "envoy.http_connection_manager",
"config": {
"statPrefix": "router",
"routeConfig": {
"name": "route0",
"virtualHosts": [
{
"routes": [
{
"route": {
"cluster": "cluster0"
},
"match": {
"prefix": "/route0_virtualhost0_match0"
}
}
],
"domains": [
"route0-virtualhost0-domain0.com"
],
"name": "route0_virtualhost0"
}
]
},
"httpFilters": [
{
"config": {
"deprecated_v1": true
},
"name": "envoy.router"
}
]
}
}
]
}
]
}
],
"clusters": [
{ "name": "cluster0", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::", "portValue": 0 } } ] },
{ "name": "cluster1", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::1", "portValue": 0 } } ] },
{ "name": "cluster2", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::2", "portValue": 0 } } ] },
{ "name": "cluster3", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::3", "portValue": 0 } } ] },
{ "name": "cluster4", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::4", "portValue": 0 } } ] },
{ "name": "cluster5", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::5", "portValue": 0 } } ] },
{ "name": "cluster6", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::6", "portValue": 0 } } ] },
{ "name": "cluster7", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::7", "portValue": 0 } } ] },
{ "name": "cluster8", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::8", "portValue": 0 } } ] },
{ "name": "cluster9", "connectTimeout": "5s", "hosts": [ { "socketAddress": { "address": "::9", "portValue": 0 } } ] }
]
},
"admin": {
"accessLogPath": "/dev/null",
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 10000
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment