Last active
November 13, 2019 13:12
-
-
Save electric380v/3bb9d23f50dd72d0e1eb0db0193673f2 to your computer and use it in GitHub Desktop.
envoy.json
This file contains hidden or 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": [ | |
{ | |
"address": "tcp://0.0.0.0:1010", | |
"filters": [ | |
{ | |
"type": "read", | |
"name": "http_connection_manager", | |
"config": { | |
"access_log": [ | |
{ | |
"path": "/dev/stdout" | |
} | |
], | |
"codec_type": "auto", | |
"stat_prefix": "ingress_http", | |
"route_config": { | |
"virtual_hosts": [ | |
{ | |
"name": "backend", | |
"domains": ["*"], | |
"routes": [ | |
{ | |
"timeout_ms": 0, | |
"prefix": "/", | |
"cluster": "nginx.service.consul" | |
} | |
] | |
} | |
] | |
}, | |
"filters": [ | |
{ | |
"type": "decoder", | |
"name": "router", | |
"config": {} | |
} | |
] | |
} | |
} | |
] | |
} | |
], | |
"admin": { | |
"access_log_path": "/dev/stdout", | |
"address": "tcp://0.0.0.0:8001" | |
}, | |
"cluster_manager": { | |
"clusters": [ | |
{ | |
"name": "nginx.service.consul", | |
"connect_timeout_ms": 250, | |
"type": "sds", | |
"lb_type": "round_robin", | |
"service_name": "tp-web.service.consul" | |
} | |
], | |
"sds": { | |
"cluster": { | |
"name": "envoy_consul_sds", | |
"type": "logical_dns", | |
"connect_timeout_ms": 250, | |
"lb_type": "round_robin", | |
"hosts": [ | |
{"url": "tcp://envoy-consul-sds.service.consul:8080"} | |
] | |
}, | |
"refresh_delay_ms": 1000 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment