Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Envoy proxy instance proxying two Kafka brokers at localhost:9092 & 9093
static_resources:
listeners:
- address:
socket_address:
address: 127.0.0.1
port_value: 19092
filter_chains:
- filters:
- name: envoy.filters.network.kafka_broker
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.kafka_broker.v2alpha1.KafkaBroker
stat_prefix: broker1
- name: envoy.tcp_proxy
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.tcp_proxy.v2.TcpProxy
stat_prefix: ingress_tcp
cluster: broker1
- address:
socket_address:
address: 127.0.0.1
port_value: 19093
filter_chains:
- filters:
- name: envoy.filters.network.kafka_broker
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.kafka_broker.v2alpha1.KafkaBroker
stat_prefix: broker2
- name: envoy.tcp_proxy
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.tcp_proxy.v2.TcpProxy
stat_prefix: ingress_tcp
cluster: broker2
clusters:
- name: broker1
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 9092
- name: broker2
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 9093
admin:
access_log_path: /dev/null
profile_path: /dev/null
address:
socket_address: { address: 127.0.0.1, port_value: 9901 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment