Created
July 29, 2017 03:29
-
-
Save bplotnick/08e125284a2fb15939336c3a6c7ac3ad to your computer and use it in GitHub Desktop.
envoy_config
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
{ | |
"listeners": [ | |
{ | |
"name": "service1.main_egress", | |
"address": "tcp://0.0.0.0:10000", | |
"filters": [ | |
{ | |
"type": "read", | |
"name": "http_connection_manager", | |
"config": { | |
"codec_type": "auto", | |
"stat_prefix": "egress_http", | |
"filters": [ | |
{ | |
"type": "decoder", | |
"name": "router", | |
"config": {} | |
} | |
], | |
"route_config": { | |
"virtual_hosts": [ | |
{ | |
"name": "service1.main_frontend", | |
"domains": [ | |
"*" | |
], | |
"routes": [ | |
{ | |
"prefix": "/", | |
"cluster": "service1.main_egress" | |
} | |
] | |
} | |
] | |
} | |
} | |
} | |
] | |
}, | |
[... SNIP: about 300 more exactly the same except for service name and port ...] | |
], | |
"admin": { | |
"access_log_path": "/tmp/log/envoy/admin_access.log", | |
"address": "tcp://0.0.0.0:9901" | |
}, | |
"cluster_manager": { | |
"clusters": [ | |
{ | |
"name": "service1.main_egress", | |
"type": "static", | |
"connect_timeout_ms": 250, | |
"lb_type": "round_robin", | |
"hosts": [ | |
{"url": "tcp://192.0.2.1:10050"}, | |
{"url": "tcp://192.0.2.5:10050"}, | |
{"url": "tcp://192.0.2.5:10052"}, | |
] | |
}, | |
[... SNIP: another 300 more clusters ...] | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment