Envoy Proxy is a high-performance, open-source edge and service proxy designed for cloud-native applications. It provides dynamic service discovery, load balancing, observability, and more. In this guide, we will walk through the steps to install and configure Envoy Proxy on Debian 11.

Step 1: Update Your System

Start by updating your system to ensure all packages are up to date:

sudo apt update && sudo apt upgrade

Step 2: Install Required Dependencies

Envoy requires some dependencies, including apt-transport-https and gnupg. Install them using the following command:

sudo apt install apt-transport-https gnupg2 curl

Step 3: Add Envoy Repository

Add the official Envoy APT repository to your system by running the following commands:

curl -sL 'https://getenvoy.io/gpg' | sudo apt-key add -
echo "deb [arch=amd64] https://packages.getenvoy.io/debian focal stable" | sudo tee /etc/apt/sources.list.d/getenvoy.list

Update your package list:

sudo apt update

Step 4: Install Envoy Proxy

Now, install Envoy Proxy by running:

sudo apt install envoy

Step 5: Verify Envoy Installation

Once the installation is complete, verify that Envoy is installed correctly by checking the version:

envoy --version

Step 6: Configure Envoy Proxy

To configure Envoy Proxy, you need to create a configuration file. Create a file called envoy.yaml in the /etc/envoy/ directory:

sudo nano /etc/envoy/envoy.yaml

Here’s an example of a basic configuration file:


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: local_service
              domains: ["*"]
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: service_cluster
          http_filters:
          - name: envoy.filters.http.router
  clusters:
  - name: service_cluster
    connect_timeout: 0.25s
    type: LOGICAL_DNS
    lb_policy: ROUND_ROBIN
    load_assignment:
      cluster_name: service_cluster
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: 127.0.0.1
                port_value: 8080

Save and close the file. This configuration sets up a listener on port 10000, routing traffic to a service running locally on port 8080.

Step 7: Start Envoy Proxy

Now that you have configured Envoy, you can start the service:

sudo systemctl start envoy

Enable Envoy to start at boot:

sudo systemctl enable envoy

Step 8: Check Envoy Status

To check if Envoy is running correctly, use the following command:

sudo systemctl status envoy

Conclusion

Congratulations! You have successfully installed and configured Envoy Proxy on Debian 11. Envoy provides robust traffic management features, load balancing, and observability, making it an excellent choice for cloud-native applications and microservices.

If you're looking for reliable and scalable VPS hosting for your Envoy Proxy setup, consider using Windows VPS UK. With Windows VPS, you can benefit from high-performance hosting for proxy servers, web applications, and more. Whether you need VPS UK Windows or Windows Virtual Private Servers, you'll find a hosting solution tailored to your needs.

For larger projects, explore Windows Virtual Dedicated Server Hosting or Virtual Private Server Hosting Windows. Whether you're in the UK, Italy, or elsewhere, Windows VPS Italy and UK VPS Windows offer secure and reliable hosting solutions. Visit Windows VPS Hosting UK to discover the best hosting options for your Envoy Proxy setup.

Was this answer helpful? 0 Users Found This Useful (0 Votes)