Envoy is a high-performance edge and service proxy designed for cloud-native applications. It provides advanced load balancing, observability, and security features for microservices.
📑 Table of Contents
Key Features
- L7 Proxy: HTTP/2 and gRPC support
- Service Discovery: Dynamic configuration
- Load Balancing: Multiple algorithms
- Observability: Built-in metrics and tracing
- mTLS: Automatic certificate rotation
Installation
Install Envoy on Ubuntu:
sudo apt install apt-transport-https gnupg2 curl lsb-release
curl -sL https://deb.dl.getenvoy.io/public/gpg.8115BA8E629CC074.key | sudo gpg --dearmor -o /usr/share/keyrings/getenvoy-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/getenvoy-keyring.gpg] https://deb.dl.getenvoy.io/public/deb/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/getenvoy.list
sudo apt update
sudo apt install envoy
Usage Examples
Basic Envoy configuration:
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: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: backend
domains: ["*"]
routes:
- match:
prefix: "/"
route:
cluster: service
Benefits
Envoy provides enterprise-grade networking for microservices. Its rich feature set and observability make it the foundation of service mesh architectures.
Was this article helpful?