mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 20:51:10 +00:00
b5aab27c21
* connect: allow overriding envoy listener bind_address * Update agent/xds/config.go Co-Authored-By: Kyle Havlovitz <kylehav@gmail.com> * connect: allow overriding envoy listener bind_port * envoy: support unix sockets for grpc in bootstrap Add AgentSocket BootstrapTplArgs which if set overrides the AgentAddress and AgentPort to generate a bootstrap which points Envoy to a unix socket file instead of an ip:port. * Add a test for passing the consul addr as a unix socket * Fix config formatting for envoy bootstrap tests * Fix listeners test cases for bind addr/port * Update website/source/docs/connect/proxies/envoy.md
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
{
|
|
"admin": {
|
|
"access_log_path": "/dev/null",
|
|
"address": {
|
|
"socket_address": {
|
|
"address": "127.0.0.1",
|
|
"port_value": 19000
|
|
}
|
|
}
|
|
},
|
|
"node": {
|
|
"cluster": "test-proxy",
|
|
"id": "test-proxy"
|
|
},
|
|
"static_resources": {
|
|
"clusters": [
|
|
{
|
|
"name": "local_agent",
|
|
"connect_timeout": "1s",
|
|
"type": "STATIC",
|
|
"http2_protocol_options": {},
|
|
"hosts": [{
|
|
"socket_address": {
|
|
"address": "127.0.0.1",
|
|
"port_value": 8502
|
|
}
|
|
}]
|
|
}
|
|
]
|
|
},
|
|
"stats_config":
|
|
{
|
|
"name": "fake_config"
|
|
},
|
|
"dynamic_resources": {
|
|
"lds_config": { "ads": {} },
|
|
"cds_config": { "ads": {} },
|
|
"ads_config": {
|
|
"api_type": "GRPC",
|
|
"grpc_services": {
|
|
"initial_metadata": [
|
|
{
|
|
"key": "x-consul-token",
|
|
"value": ""
|
|
}
|
|
],
|
|
"envoy_grpc": {
|
|
"cluster_name": "local_agent"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|