Skip to content

Instantly share code, notes, and snippets.

@Misterhex
Created March 16, 2019 00:34
Show Gist options
  • Save Misterhex/1af4cefaeb004ab808d628b85da6d79e to your computer and use it in GitHub Desktop.
Save Misterhex/1af4cefaeb004ab808d628b85da6d79e to your computer and use it in GitHub Desktop.
envoy proxy protocol upstream example
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 9901
static_resources:
listeners:
- name: tcp_listener
address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 13000
listener_filters:
- name: envoy.listener.proxy_protocol
filter_chains:
- filter_chain_match:
destination_port: 4251
filters:
- name: envoy.tcp_proxy
config:
cluster: httpbin1
stat_prefix: httpbin1
access_log:
- name: envoy.file_access_log
config:
path: /dev/stdout
- filter_chain_match:
destination_port: 4252
filters:
- name: envoy.tcp_proxy
config:
cluster: httpbin2
stat_prefix: httpbin2
access_log:
- name: envoy.file_access_log
config:
path: /dev/stdout
clusters:
- name: httpbin1
type: STRICT_DNS
connect_timeout: 1s
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 12345
- name: httpbin2
type: STRICT_DNS
connect_timeout: 1s
lb_policy: round_robin
hosts:
- socket_address:
address: httpbin.org
port_value: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment