Skip to content

Instantly share code, notes, and snippets.

@ambuc
Last active September 5, 2018 19:59
Show Gist options
  • Save ambuc/50181fa5f64485041696730c67e9f29f to your computer and use it in GitHub Desktop.
Save ambuc/50181fa5f64485041696730c67e9f29f to your computer and use it in GitHub Desktop.
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