Created
July 27, 2023 10:20
-
-
Save shiponcs/fa11735d31bb199ecadd473c615bdd34 to your computer and use it in GitHub Desktop.
Some fundamental envoy configuration yaml files
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
# this configure file is only for envoy-filter-example repo | |
admin: | |
access_log_path: ./loglog.log | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
static_resources: | |
clusters: | |
name: cluster_0 | |
connect_timeout: 0.25s | |
load_assignment: | |
cluster_name: cluster_0 | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
listeners: | |
name: listener_0 | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
filter_chains: | |
- filters: | |
- name: echo2 | |
typed_config: | |
"@type": type.googleapis.com/google.protobuf.Struct |
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
admin: | |
access_log_path: /dev/null | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
static_resources: | |
clusters: | |
name: cluster_0 | |
connect_timeout: 0.25s | |
load_assignment: | |
cluster_name: cluster_0 | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
listeners: | |
name: listener_0 | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 0 | |
filter_chains: | |
- filters: | |
- name: echo | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.network.echo.v3.Echo |
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: | |
- name: listener_0 | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 10000 | |
filter_chains: | |
- filters: | |
- name: envoy.filters.network.tcp_proxy | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy | |
stat_prefix: destination | |
cluster: cluster_0 | |
clusters: | |
- name: cluster_0 | |
connect_timeout: 30s | |
type: LOGICAL_DNS | |
dns_lookup_family: V4_ONLY | |
load_assignment: | |
cluster_name: cluster_0 | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 1235 |
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
admin: | |
address: | |
socket_address: | |
protocol: TCP | |
address: 127.0.0.1 | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: | |
protocol: UDP | |
address: 127.0.0.1 | |
port_value: 1234 | |
udp_listener_config: | |
downstream_socket_config: | |
max_rx_datagram_size: 9000 | |
listener_filters: | |
- name: envoy.filters.udp_listener.udp_proxy | |
typed_config: | |
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig | |
stat_prefix: service | |
matcher: | |
on_no_match: | |
action: | |
name: route | |
typed_config: | |
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.Route | |
cluster: service_udp | |
upstream_socket_config: | |
max_rx_datagram_size: 9000 | |
clusters: | |
- name: service_udp | |
type: STATIC | |
lb_policy: ROUND_ROBIN | |
load_assignment: | |
cluster_name: service_udp | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 1235 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment