diff --git a/e2e/envoy/config.yaml b/e2e/envoy/config.yaml new file mode 100644 index 00000000..858ff359 --- /dev/null +++ b/e2e/envoy/config.yaml @@ -0,0 +1,62 @@ +admin: + address: + socket_address: + protocol: TCP + address: 0.0.0.0 + port_value: 9901 +static_resources: + listeners: + - name: listener_0 + address: + socket_address: + protocol: TCP + address: 0.0.0.0 + port_value: 10000 + 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 + stat_prefix: ingress_http + access_log: + - name: envoy.access_loggers.stdout + typed_config: + "@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog + route_config: + name: local_route + virtual_hosts: + - name: local_service + domains: ["*"] + routes: + - match: + prefix: "/" + route: + cluster: forwarder_proxy + http_filters: + - name: envoy.filters.http.router + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router + clusters: + - name: forwarder_proxy + connect_timeout: 0.25s + type: LOGICAL_DNS + # Comment out the following line to test on v6 networks + dns_lookup_family: V4_ONLY + typed_extension_protocol_options: + envoy.extensions.upstreams.http.v3.HttpProtocolOptions: + "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions + explicit_http_config: + http2_protocol_options: {} + load_assignment: + cluster_name: forwarder_proxy + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: httpbin + port_value: 443 + transport_socket: + name: envoy.transport_sockets.tls + typed_config: + "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext diff --git a/e2e/envoy/service.yaml b/e2e/envoy/service.yaml new file mode 100644 index 00000000..6112cd9a --- /dev/null +++ b/e2e/envoy/service.yaml @@ -0,0 +1,11 @@ +version: "3.8" + +services: + envoy: + image: envoyproxy/envoy:v1.24-latest + command: -c /etc/envoy/envoy.yaml --component-log-level upstream:debug,http:debug,router:debug,config:debug + ports: + - "9901:9901" + - "13128:10000" + volumes: + - ./envoy/config.yaml:/etc/envoy/envoy.yaml