From e48f17af2386192449594f40f9305bf122217c9e Mon Sep 17 00:00:00 2001 From: Loong Date: Mon, 6 May 2024 10:32:57 +0800 Subject: [PATCH] add example config Signed-off-by: Loong --- .../_include/dlb_example_config.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/root/configuration/other_features/_include/dlb_example_config.yaml diff --git a/docs/root/configuration/other_features/_include/dlb_example_config.yaml b/docs/root/configuration/other_features/_include/dlb_example_config.yaml new file mode 100644 index 000000000000..52bf9b595250 --- /dev/null +++ b/docs/root/configuration/other_features/_include/dlb_example_config.yaml @@ -0,0 +1,45 @@ +static_resources: + listeners: + - address: + socket_address: + address: 0.0.0.0 + port_value: 10000 + connection_balance_config: + extend_balance: + name: envoy.network.connection_balance.dlb + typed_config: + "@type": type.googleapis.com/envoy.extensions.network.connection_balance.dlb.v3alpha.Dlb + filter_chains: + - filters: + - name: envoy.filters.network.http_connection_manager + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager + codec_type: AUTO + stat_prefix: ingress_http + route_config: + name: local_route + virtual_hosts: + - name: backend + domains: + - "*" + routes: + - match: + prefix: "/" + route: + cluster: service1 + http_filters: + - name: envoy.filters.http.router + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router + + clusters: + - name: service1 + load_assignment: + cluster_name: service1 + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: 127.0.0.1 + port_value: 12000 \ No newline at end of file