Last active
October 30, 2018 15:53
-
-
Save dnivra26/72b8367a2a5070fc9a38190e82937f81 to your computer and use it in GitHub Desktop.
Front Envoy Configuration
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
--- | |
tracing: | |
http: | |
name: envoy.zipkin | |
config: | |
collector_cluster: jaeger | |
collector_endpoint: "/api/v1/spans" | |
admin: | |
access_log_path: "/tmp/admin_access.log" | |
address: | |
socket_address: | |
address: "127.0.0.1" | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- | |
name: "http_listener" | |
address: | |
socket_address: | |
address: "0.0.0.0" | |
port_value: 80 | |
filter_chains: | |
filters: | |
- | |
name: "envoy.http_connection_manager" | |
config: | |
tracing: | |
operation_name: egress | |
use_remote_address: true | |
add_user_agent: true | |
access_log: | |
- name: envoy.file_access_log | |
config: | |
path: /dev/stdout | |
format: "[ACCESS_LOG][%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" \"%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%\"\n" | |
stat_prefix: "ingress_443" | |
codec_type: "AUTO" | |
generate_request_id: true | |
route_config: | |
name: "local_route" | |
virtual_hosts: | |
- | |
name: "http-route" | |
domains: | |
- "*" | |
routes: | |
- | |
match: | |
prefix: "/" | |
route: | |
cluster: "service_a" | |
http_filters: | |
- | |
name: "envoy.router" | |
clusters: | |
- | |
name: "service_a" | |
connect_timeout: "0.25s" | |
type: "strict_dns" | |
lb_policy: "ROUND_ROBIN" | |
hosts: | |
- | |
socket_address: | |
address: "service_a_envoy" | |
port_value: 8786 | |
- name: jaeger | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
hosts: | |
- socket_address: | |
address: jaeger | |
port_value: 9411 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment