Skip to content

Instantly share code, notes, and snippets.

@rjenkins
Created September 23, 2018 18:02
Show Gist options
  • Save rjenkins/8761be35b5fe55764841249fcca70681 to your computer and use it in GitHub Desktop.
Save rjenkins/8761be35b5fe55764841249fcca70681 to your computer and use it in GitHub Desktop.
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
codec_type: AUTO
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match: { prefix: "/" }
route: { cluster: server }
http_filters:
- name: envoy.router
clusters:
- name: server
connect_timeout: 0.25s
lb_policy: ROUND_ROBIN
http_protocol_options: {}
common_lb_config:
zone_aware_lb_config: { routing_enabled: { value: 100.0 }, min_cluster_size: 1}
type: EDS
eds_cluster_config:
eds_config:
api_config_source:
api_type: GRPC
grpc_services:
envoy_grpc:
cluster_name: xds_cluster
- name: xds_cluster
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
common_lb_config:
zone_aware_lb_config: { routing_enabled: { value: 100.0 }, min_cluster_size: 1}
http2_protocol_options: {}
hosts: [{ socket_address: { address: xds, port_value: 9001 }}]
admin:
access_log_path: "/dev/null"
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