Let's now use Envoy as a front proxy for our deployment. Start by creating Envoy's configuration file, in our case named envoy-front_proxy.yaml, with the address of our proxy:
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 8080
traffic_direction: INBOUND
We've specified that Envoy is going to listen for incoming traffic on port 8080. Later in the config, we'll route it to our service. Now, let's specify that we'd like to handle HTTP requests using our set of service instances and adding some tracing capabilities on top. First, let's add an HTTP endpoint:
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
Now, let's specify...