Skip to content

Instantly share code, notes, and snippets.

@peterj
Created July 19, 2021 20:52
Show Gist options
  • Save peterj/37ace9917227488140cc61d7d3560c89 to your computer and use it in GitHub Desktop.
Save peterj/37ace9917227488140cc61d7d3560c89 to your computer and use it in GitHub Desktop.
static_resources:
listeners:
- name: listener_0
address:
socket_address:
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: edge
http_filters:
- name: envoy.filters.http.router
route_config: {}
@PradheepShrinivasan
Copy link

PradheepShrinivasan commented Feb 21, 2023

the http_filter needs type config as envoyproxy/envoy#21464

    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: edge
          http_filters:
          - name: envoy.filters.http.router
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
          route_config: {}

@simplyatul
Copy link

Hi @peterj
This gist is used at https://tetrate.io/blog/get-started-with-envoy-in-5-minutes/# and without typed_config, it fails to work with Envoy v1.28.0
Appreciate if you can update the gist so it will reflect correctly on the blog as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment