From 8a8ab07eda13176cc8792e707a2748d6bfd58cc3 Mon Sep 17 00:00:00 2001 From: htuch Date: Wed, 17 May 2017 13:52:30 -0400 Subject: [PATCH] examples: simple service listener and http_connection_manager protos. (#41) --- .../service_envoy/http_connection_manager.pb | 26 +++++++++++++++++++ examples/service_envoy/listeners.pb | 16 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 examples/service_envoy/http_connection_manager.pb create mode 100644 examples/service_envoy/listeners.pb diff --git a/examples/service_envoy/http_connection_manager.pb b/examples/service_envoy/http_connection_manager.pb new file mode 100644 index 00000000..f7b99875 --- /dev/null +++ b/examples/service_envoy/http_connection_manager.pb @@ -0,0 +1,26 @@ +codec_type: AUTO + +stat_prefix: "ingress_http" + +route_config { + virtual_hosts { + name: "service" + domains: "*" + routes { + match { + prefix: "/service" + } + forward { + cluster: "local_service" + timeout { + seconds: 0 + } + } + } + } +} + +http_filters { + type: DECODER + name: "router" +} diff --git a/examples/service_envoy/listeners.pb b/examples/service_envoy/listeners.pb new file mode 100644 index 00000000..8c60668a --- /dev/null +++ b/examples/service_envoy/listeners.pb @@ -0,0 +1,16 @@ +listeners { + resolved_address { + socket_address { + protocol: TCP + port { + value: 80 + } + } + } + filter_chains { + filter_chain { + type: READ + name: "http_connection_manager" + } + } +}