Last active
January 6, 2019 11:43
-
-
Save yindia/63e38d26e1788a9a8f827481d1bcb431 to your computer and use it in GitHub Desktop.
GRPC Front Proxy
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
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 80 | |
use_original_dst: true | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto | |
stat_prefix: ingress_http | |
generate_request_id: true | |
access_log: | |
- name: envoy.file_access_log | |
config: | |
path: "/var/log/access.log" | |
tracing: | |
operation_name: egress | |
stat_prefix: ingress_http | |
route_config: | |
name: local_route | |
virtual_hosts: | |
- name: service1 | |
domains: | |
- "*" | |
routes: | |
- match: | |
prefix: "/" | |
route: | |
cluster: service1 | |
decorator: | |
operation: service1 | |
http_filters: | |
- name: envoy.router | |
config: {} | |
clusters: | |
- name: service1 | |
connect_timeout: 0.25s | |
type: strict_dns | |
lb_policy: round_robin | |
http2_protocol_options: { } | |
hosts: [{ socket_address: { address: service1, port_value: 8080 }}] | |
admin: | |
# Could be tailed with a sidecar container. | |
access_log_path: "/var/log/admin-access.log" | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 8001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment