Created
March 26, 2018 20:49
-
-
Save ianomad/c3f03589ac9abf2443b8d580a469237a to your computer and use it in GitHub Desktop.
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
{ | |
"node": { | |
"id": "test", | |
"cluster": "test", | |
"locality": { | |
"region": "", | |
"zone": "" | |
}, | |
"metadata": {} | |
}, | |
"static_resources": { | |
"listeners": [ | |
{ | |
"name": "tls_services", | |
"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": { | |
"name": "tls_services_route", | |
"validate_clusters": false, | |
"virtual_hosts": [ | |
{ | |
"name": "my_service", | |
"domains": [ | |
"127.0.0.1:8080" | |
], | |
"routes": { | |
"match": { | |
"prefix": "/" | |
}, | |
"route": { | |
"cluster": "my_service" | |
} | |
} | |
} | |
] | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
], | |
"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