Skip to content

Instantly share code, notes, and snippets.

@ianomad
Created March 23, 2018 23:07
Show Gist options
  • Save ianomad/b57d1393f6d3d2b2519252acdb7676f9 to your computer and use it in GitHub Desktop.
Save ianomad/b57d1393f6d3d2b2519252acdb7676f9 to your computer and use it in GitHub Desktop.
{
"node": {
"id": "test",
"cluster": "test",
"locality": {
"region": "",
"zone": ""
},
"metadata": {}
},
"static_resources": {
"listeners": [
{
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 8080
}
},
"filter_chains": [
{
"filters": [
{
"name": "envoy.http_connection_manager",
"config": {
"codec_type": "auto",
"stat_prefix": "ingress_http",
"access_log": [
{
"name": "envoy.file_access_log",
"config": {
"path": "/var/log/envoy.log"
}
}
],
"route_config": {
"virtual_hosts": [
{
"name": "blabla",
"domains": [
"domain.com:8080"
],
"routes": [
{
"match": {
"prefix": "/"
},
"route": {
"cluster": "my_app_cluster"
}
}
]
}
]
}
}
}
]
}
]
},
],
"clusters": [
{
"name": "xds_cluster",
"connect_timeout": {
"seconds": "1"
},
"type": "STATIC",
"lb_policy": "ROUND_ROBIN",
"http2_protocol_options": {},
"hosts": [
{
"socket_address": {
"address": "127.0.0.1",
"port_value": 12345
}
}
]
}
]
},
"dynamic_resources": {
"cds_config": {
"api_config_source": {
"api_type": "GRPC",
"cluster_names": [
"xds_cluster"
]
}
}
},
"admin": {
"access_log_path": "/var/log/envoy/admin_access.log",
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 9901
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment