Skip to content

Instantly share code, notes, and snippets.

@peterj
Last active August 2, 2022 15:51
Show Gist options
  • Save peterj/4e7c66194078f4acf98003781ebf3d72 to your computer and use it in GitHub Desktop.
Save peterj/4e7c66194078f4acf98003781ebf3d72 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
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
route_config:
virtual_hosts:
- name: direct_response_service
domains: ["*"]
routes:
- match:
prefix: "/"
direct_response:
status: 200
body:
inline_string: "Hello"
@eduardocolombo-bnet
Copy link

Line 15 is missing the type.
Add right below:

           typed_config:
             "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router

@peterj
Copy link
Author

peterj commented Aug 2, 2022

Thanks @eduardocolombo-bnet -- fixed!

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