Created
January 6, 2020 02:18
-
-
Save Shikugawa/aa8ca48214269045994bd587f16e1744 to your computer and use it in GitHub Desktop.
Simple gRPC routing with Envoy
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
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 8000 | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
typed_config: | |
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager | |
codec_type: auto | |
stat_prefix: http_inbound_upstream_api_service | |
access_log: | |
- name: envoy.file_access_log | |
config: | |
path: /dev/stdout | |
route_config: | |
name: local_route | |
virtual_hosts: | |
- name: backend_service | |
domains: | |
- "*" | |
routes: | |
- match: | |
prefix: "/" | |
grpc: {} | |
route: | |
cluster: upstream-api-service | |
http_filters: | |
- name: envoy.router | |
typed_config: {} | |
clusters: | |
- name: upstream-api-service | |
connect_timeout: 0.250s | |
type: static | |
load_assignment: | |
cluster_name: upstream-api-service-cluster | |
endpoints: | |
lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: | |
port_value: 50001 | |
admin: | |
access_log_path: "/dev/stdout" | |
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