Setup Envoy Gateway v1.10.0 on Kubernetes: A Complete 12-Step Lab

Setup Envoy Gateway v1.10.0 on Kubernetes: A Complete 12-Step Lab

The landscape of Kubernetes traffic management has undergone a fundamental shift following the formal retirement of the ingress-nginx controller maintenance cycle in early 2026. This transition represents more than just a change in tooling; it marks the definitive end of the legacy Ingress resource model and the rise of the Kubernetes Gateway API as the primary standard for ingress operations. Envoy Gateway v1.10.0 has emerged as the definitive solution for teams seeking a modern, cloud-native control plane that uses the high-performance Envoy Proxy v1.40 as its data plane. By bundling Gateway API v1.6.1 CRDs, this release provides a stable foundation for complex traffic routing, security enforcement, and high-performance load balancing within clusters that have outgrown the limitations of annotation-based configuration. Migrating to this architecture ensures that production environments remain secure and observable in an era where traditional controllers no longer receive critical security updates or feature enhancements.

1. Step One: Initializing the Local Kubernetes Environment

Establishing a reliable testing environment is the first critical phase in mastering the Gateway API, and Kind (Kubernetes in Docker) provides a lightweight yet powerful platform for this purpose. Since Envoy Gateway requires a specific set of underlying capabilities to function correctly, the initialization process begins with a tailored configuration file that defines the cluster’s structure. In this lab, a single-node control plane is sufficient to demonstrate the full range of Envoy’s features without placing excessive demands on host resources. Using the kind-config.yaml file ensures that the cluster is created with a predictable name and node role, preventing conflicts with other local environments and providing a clean slate for the installation of the Envoy Gateway controller and its associated Custom Resource Definitions.

Creating the Kind cluster is not merely a convenience; it serves as a controlled sandbox where the interaction between the Kubernetes API and the Envoy control plane can be observed in isolation. By executing the cluster creation command with the specified configuration, the system pulls the necessary node images—ideally pinned to a supported Kubernetes version like 1.37—to ensure long-term stability. This step also involves verifying the cluster’s health and connectivity via kubectl, ensuring the node reaches a Ready status before any high-level controllers are introduced. This disciplined approach to environment setup minimizes troubleshooting later in the process, as most installation failures in Kubernetes labs trace back to improperly initialized clusters or mismatched node configurations.

Once the node is active, the operator must confirm that the local kubeconfig has been correctly updated to point to the eg-lab context. This verification ensures that subsequent commands are directed toward the new environment rather than a production or staging cluster. The health of the control plane and the availability of basic networking services within the cluster are essential prerequisites, as Envoy Gateway will eventually deploy proxies and services that depend on the internal Kubernetes networking mesh. Checking the node version and status at this stage provides a baseline for the performance and compatibility of subsequent components, especially since newer versions of the Gateway API rely on specific features introduced in recent Kubernetes minor releases.

2. Step Two: Installing the Envoy Gateway Controller via Helm

Deploying the Envoy Gateway v1.10.0 controller is facilitated by a modern OCI-based Helm chart, which represents the current standard for distributing containerized software. Unlike traditional Helm repositories that require a separate index file, OCI registries allow the chart to be stored and versioned alongside container images, improving reliability and download speeds. By targeting the official envoyproxy/gateway-helm registry, operators can pin the installation to a specific version, ensuring the lab environment remains consistent and reproducible. The installation command also creates the dedicated envoy-gateway-system namespace, which isolates control plane components from application workloads—a best practice in both laboratory and production Kubernetes deployments.

The installation of the Helm chart triggers the creation of several critical resources, including the Envoy Gateway deployment, necessary service accounts, and an extensive set of Gateway API and Envoy Gateway CRDs. This process effectively extends the Kubernetes API to recognize resources such as GatewayClass and HTTPRoute, which the controller monitors to generate Envoy proxy configurations. It is vital to monitor the deployment’s availability using the kubectl wait command, as the controller must be fully operational before it can begin processing the Gateway resources defined in subsequent steps. This controller acts as the brain of the operation, constantly reconciling the desired state of networking resources with the actual configuration of the Envoy proxy instances.

Verifying the presence of the new Custom Resource Definitions is a mandatory validation step that confirms the success of the Helm installation. A simple grep command against the cluster’s CRDs should reveal a long list of entries under the gateway.networking.k8s.io and gateway.envoyproxy.io groups, signaling that the cluster is now ready for Gateway API operations. If these resources are missing or show incorrect versions, the controller will be unable to process routing rules or security policies, leading to silent failures. This stage of the lab reinforces the concept of a Kubernetes-native control plane, where proxy logic is managed entirely through standard Kubernetes primitives rather than external configuration files or proprietary command-line tools.

3. Step Three: Generating Security Credentials and TLS Secrets

Security is a foundation of modern ingress architecture, and terminating TLS at the edge is the standard method for securing traffic between clients and the cluster. In this lab, creating a self-signed certificate using OpenSSL provides a hands-on way to understand how certificates are structured and how Envoy uses them. A key requirement for modern browsers and clients is the inclusion of a Subject Alternative Name (SAN) within the certificate, which identifies the specific hostnames the certificate is authorized to represent. By generating a 2048-bit RSA key and a corresponding certificate for the www.example.com domain, the operator prepares the necessary cryptographic material to enable HTTPS listeners on the Envoy proxy.

Translating these physical certificate files into a Kubernetes Secret bridges the gap between the file system and the cluster’s control plane. This Secret, typically of the type kubernetes.io/tls, stores the public certificate and private key in a format that the Envoy Gateway controller can easily mount into generated proxy pods. Placing this Secret in the default namespace ensures it is easily accessible to the Gateway resource that will be created later, avoiding the need for complex cross-namespace reference grants. This step highlights the importance of managing sensitive data through Kubernetes’ built-in security mechanisms, ensuring that keys are not exposed in plain text within configuration files or repository commits.

While this lab uses a self-signed certificate for simplicity, the workflow mirrors the logic used with production tools like cert-manager or enterprise certificate authorities. The ability to correctly reference a Secret by name within a Gateway listener is a fundamental skill for any Kubernetes operator. By confirming that the Secret exists and contains the correct data fields (tls.crt and tls.key), the operator ensures that the upcoming HTTPS listener will be able to start without errors. Troubleshooting TLS issues often starts here; a malformed certificate or a missing SAN will result in connection resets or browser warnings that can be difficult to diagnose if the underlying Secret is not validated during the initial setup phase.

4. Step Four: Establishing the GatewayClass and Gateway Entry Points

The Gateway API introduces a tiered model of responsibility, and the GatewayClass resource represents the infrastructure provider’s role in this hierarchy. By defining a GatewayClass named eg and linking it to the Envoy Gateway controller, the operator tells the cluster exactly which software should handle the implementation of any gateways associated with this class. This abstraction allows a single cluster to support multiple ingress implementations simultaneously, such as one for public traffic and another for internal services. The GatewayClass acts as a template, ensuring that all subsequent gateways share the same underlying controller logic and configuration defaults, which simplifies the management of large-scale networking environments.

Building on the GatewayClass, the Gateway resource defines the entry points for traffic, specifying the ports, protocols, and hostnames that the Envoy proxy should listen on. In this lab, the Gateway is configured with two distinct listeners: a plain HTTP listener on port 80 and a secure HTTPS listener on port 443, both targeting the www.example.com hostname. This configuration demonstrates the dual-protocol nature of modern web traffic, where both legacy and secure connections must be handled gracefully. The HTTPS listener also includes a reference to the TLS Secret created in the previous step, completing the security chain from certificate generation to the actual network interface.

Once the Gateway resource is applied, the Envoy Gateway controller springs into action, automatically spinning up the necessary Envoy proxy Deployment and Service in the envoy-gateway-system namespace. This automation is a core benefit of using a specialized controller; operators no longer need to manually manage the proxy’s lifecycle or write complex Envoy configuration files. Using the kubectl wait command to monitor the status of the proxy deployment is essential, as it confirms that the data plane is ready to receive traffic. The status field of the Gateway resource also provides valuable feedback, indicating whether the configuration has been accepted and whether an external IP address—even if pending in a local environment—has been assigned.

5. Step Five: Deploying the Backend Application Service

A gateway is only as useful as the applications it serves, and deploying a reliable backend is essential for testing the routing and policy logic of the lab. The traefik/whoami image is a popular choice for this purpose because it echoes request details back to the client, allowing the operator to verify that headers, protocols, and source IPs are handled correctly by the proxy. This step involves creating a standard Kubernetes Deployment with two replicas, which allows you to observe load-balancing behavior as Envoy distributes requests between pods. Providing each replica with its own identity through environment variables or pod metadata makes it easy to see which specific instance is handling a given request.

Accompanying the deployment is a Kubernetes Service that acts as the stable internal endpoint for the backend pods. In this configuration, the service listens on port 3000 and forwards traffic to the pods on port 80, a common pattern that illustrates how port mapping works within the cluster. By assigning a distinct label to the deployment and using a matching selector in the service, the operator ensures that Envoy has a clear target for the traffic it receives. This internal plumbing is invisible to the end user but critical for the proxy, which uses the service name to resolve the individual pod IPs that make up the upstream load-balancing pool.

The final part of this step involves verifying that the backend pods are in a “Running” state and that the service is correctly mapping to active endpoints. This can be confirmed by checking the Endpoints resource associated with the backend service, which should list the IPs of the two whoami pods. Ensuring that the application is healthy before attempting to route traffic through the gateway prevents confusion between ingress configuration errors and application-level failures. This layered approach to building the lab—starting with the infrastructure, then the controller, and finally the application—builds a robust understanding of how traffic flows from the internet through the proxy to its destination.

6. Step Six: Configuring HTTPRoute Rules for Traffic Control

With the Gateway and backend service in place, the HTTPRoute resource is used to define the specific rules that govern how traffic is directed to the application. This resource is where the logic of the ingress layer resides, including path matching, header manipulation, and backend selection. The first route, named “web,” is designed to handle HTTPS traffic for the www.example.com hostname. It includes a rule that matches all paths starting with a forward slash and applies a filter to add a custom “x-lab” header to every request. This demonstrates Envoy’s ability to mutate traffic in flight, providing a way to inject metadata or track requests as they pass through the ingress layer.

A second HTTPRoute, named http-to-https, is created to handle the common requirement of redirecting plain HTTP traffic to its secure counterpart. By attaching this route specifically to the Gateway’s HTTP listener, operators can use a RequestRedirect filter to return a 301 Moved Permanently status code to the client. This filter instructs the client to retry the request using the HTTPS protocol, ensuring that no unencrypted traffic reaches the application’s backend. This pattern is superior to older methods that required complex annotations or manual rewrite rules, as it uses a typed, validated Kubernetes resource that is easier to maintain and less prone to configuration errors.

The explicit attachment of routes to specific Gateway listeners using the sectionName field is a critical detail that prevents routing loops and configuration ambiguity. By binding the redirect route only to the port 80 listener and the web route only to the port 443 listener, the operator ensures that Envoy’s routing table remains clean and predictable. Once these resources are applied, the Envoy Gateway controller updates the proxy configuration in real time, allowing the changes to take effect without restarting the data plane. This agility is a hallmark of the Gateway API, enabling rapid iteration on traffic logic without interrupting the flow of active requests to the application.

7. Step Seven: Testing Connectivity and Verifying Route Logic

Testing the ingress path in a local Kind environment requires a creative approach since a cloud-native load balancer is not readily available to provide a public IP address. The kubectl port-forward command serves as a vital bridge, allowing the operator to map local ports on their workstation directly to the Envoy proxy service within the cluster. By mapping local port 8888 to the proxy’s port 80 and local port 8443 to port 443, the operator creates a tunnel through which traffic can flow. This setup allows for the validation of both HTTP redirect logic and HTTPS routing rules as if the traffic were coming from a real external client, providing a high-fidelity simulation of a production environment.

The first validation test involves sending a request to the HTTP endpoint to confirm that the redirect logic functions as intended. Using curl with the –resolve flag allows the operator to simulate a DNS lookup, mapping www.example.com to the local loopback address while preserving the correct Host header. A successful test will show a 301 status code and a Location header pointing to the HTTPS version of the URL. This confirms that Envoy is correctly interpreting the RequestRedirect filter and that the listener binding correctly isolates HTTP traffic from HTTPS traffic. This simple check provides powerful confirmation that the basic plumbing of the Gateway API is correctly assembled.

Following the redirect test, the operator must verify the HTTPS route by sending an encrypted request to port 8443. Because the lab uses a self-signed certificate, the –cacert flag is used to tell curl to trust the certificate generated in step three. The response from the whoami backend should include the expected application headers along with the custom x-lab header injected by Envoy. This response proves that TLS termination is working, path-based routing is successful, and the header modification filter is active. Observing the Hostname field in the response also confirms that load balancing is occurring across the two backend replicas, completing the initial verification of the core ingress stack.

8. Step Eight: Implementing Local Rate Limiting Policies

Once basic routing is established, the focus shifts to protecting the application from traffic spikes by implementing a local rate-limiting policy. In the Envoy Gateway ecosystem, this is achieved using the BackendTrafficPolicy resource, which allows for granular control over how traffic is handled as it approaches the backend. A local rate limit is particularly efficient because it is enforced directly within each Envoy proxy pod’s memory, requiring no external dependencies like Redis. By applying a policy that limits requests to five per minute for the web route, the operator can ensure that no single proxy instance is overwhelmed by a sudden flood of requests, preserving service availability for other users.

The BackendTrafficPolicy configuration targets the specific HTTPRoute created earlier, demonstrating the flexibility of the Gateway API’s policy attachment model. This model allows security and performance policies to be managed independently of routing rules, making it easier for different teams to collaborate on the same ingress infrastructure. The token bucket algorithm used by Envoy ensures that small bursts of traffic are allowed while long-term averages are strictly maintained. This step highlights the shift away from generic annotations toward typed, purpose-built resources that provide a clear and discoverable way to manage advanced traffic features without requiring deep knowledge of Envoy’s internal configuration syntax.

Verifying the local rate limit involves sending a rapid series of requests and observing the point at which Envoy begins returning 429 “Too Many Requests” errors. In this lab, the operator can use a simple loop to trigger the limit, confirming that exactly five requests pass through before the “local_rate_limited” message appears in the response body. Note that because the limit is local to each pod, the total cluster-wide capacity is a function of the number of proxy replicas. This behavior is ideal for basic flood protection and prepares the operator for the next phase of the lab, where a more centralized approach is needed to enforce strict global quotas across the entire proxy fleet.

9. Step Nine: Deploying Redis for Global Rate Limiting Support

Enforcing strict, cluster-wide rate limits requires a centralized state store where all proxy instances can track request counts in real time. Redis is the standard backend for this purpose in the Envoy Gateway architecture, providing the high-performance, low-latency data storage needed to support global rate-limiting decisions. The deployment of Redis in a dedicated redis-system namespace keeps the infrastructure organized and follows the principle of least privilege. By using a lightweight image like redis:8-alpine, the lab maintains a small footprint while still utilizing a modern version of the software that includes the latest security patches and performance improvements.

Integrating Redis with the Envoy Gateway controller requires updating the Helm installation, where the operator specifies the address of the Redis service. This configuration is passed through a values-ratelimit.yaml file, which tells the controller where to find the rate-limiting backend. Once the controller is updated and restarted, it can communicate with the Redis instance to manage global counters. This transition from local to global rate limiting represents a significant increase in architectural complexity, moving from a distributed, per-pod model to a centralized, consistent model that supports sophisticated per-user or per-tenant quotas across large clusters.

The availability of the global rate-limiting infrastructure is confirmed by the appearance of a new envoy-ratelimit pod in the envoy-gateway-system namespace. This pod acts as an intermediary between the Envoy proxies and the Redis store, handling the logic of incrementing counters and determining whether a request should be allowed or denied. This service-oriented approach ensures that the proxies themselves remain lean, offloading the complexity of global state management to a specialized component. Checking the health of the Redis deployment and verifying connectivity using the redis-cli tool are essential final steps before implementing global policy rules.

10. Step Ten: Enforcing Per-User Global Rate Limits

With the global infrastructure in place, the operator can now implement a sophisticated rate-limiting policy that identifies and limits users based on their unique IDs. This is achieved by creating a new /api route and attaching a global BackendTrafficPolicy that uses the Distinct client selector. This selector instructs Envoy to examine the x-user-id header of each incoming request and maintain a separate rate-limiting bucket for every unique value it finds. This capability is essential for building modern APIs where different clients or tenants must be managed according to specific service-level agreements without one user’s traffic affecting the availability of others.

The global policy applied in this step sets a strict limit of three requests per minute per user, a threshold that is easy to test manually. By targeting the API route, the operator ensures that these limits apply only to the sensitive parts of the application, leaving the main web route governed by the more relaxed local limits established earlier. This layering of policies demonstrates the power of the Gateway API to provide precise control over different traffic segments. The use of global limits ensures that even if a user’s requests are spread across multiple Envoy proxy pods, their total consumption is accurately tracked and capped at the specified level, providing a consistent experience regardless of the cluster’s scale.

Testing the global limit involves simulating two different users—Alice and Bob—and observing how Envoy handles their traffic independently. By sending four requests as Alice and one as Bob, the operator can verify that Alice receives a 429 error on her fourth attempt while Bob’s request continues to pass through successfully. This isolation is the key benefit of global rate limiting; because it is enforced across all proxies via Redis, it is a reliable tool for applying business logic at the edge. This step concludes the implementation phase of the lab, leaving the operator with a highly functional, secure, and resilient ingress setup that is ready for deeper inspection and automated verification.

11. Step Eleven: Inspecting Status and Diagnostic Information

Effective operation of a Kubernetes cluster requires the ability to diagnose issues quickly, and the Gateway API provides a wealth of information through the status fields of its resources. By using the kubectl describe command on Gateway and HTTPRoute objects, operators can see a history of conditions like Accepted and Programmed, which provide a play-by-play account of how the controller processed the configuration. If a route fails to attach to a gateway, the status reason will often point directly to the problem, such as a hostname mismatch or a missing backend service. Developing a habit of checking these status fields first can save hours of troubleshooting by identifying configuration errors before they manifest as network failures.

Beyond resource status, Envoy proxy pod logs provide a detailed look into real-time traffic processing. By following the Envoy container logs, an operator can see individual access logs for each request, including the response code, request duration, and any applied filters. These logs are especially useful for debugging rate-limiting issues, as they explicitly state whether a request was blocked by a local or global policy. Understanding the log format and knowing how to filter for specific status codes like 429 or 503 is a critical skill for any platform engineer responsible for the health of the ingress layer.

The diagnostic phase also includes verifying the health of the control plane by inspecting the Envoy Gateway controller logs. This is where errors related to CRD versions, Redis connectivity, or Envoy configuration generation appear. In a complex environment where multiple policies are applied simultaneously, the controller logs act as the source of truth for the system’s state. By combining information from resource statuses, proxy access logs, and controller diagnostics, the operator builds a complete picture of traffic flow, ensuring the system is not only functional but also observable and maintainable over the long term.

12. Step Twelve: Automating Laboratory Verification with Python

The final step of the lab involves consolidating all manual tests into a single, repeatable Python script that verifies the entire configuration in seconds. This script uses the standard library to establish HTTP and HTTPS connections, simulate DNS resolution, and check for specific headers and status codes. By automating the verification process, the operator ensures that the lab is functioning correctly and creates a template for continuous integration tests that can be used in more complex development workflows. This approach reflects the modern shift toward Infrastructure as Code, where system validation is just as important as the deployment itself.

The verification script is designed to handle the nuances of the lab environment, such as the use of a self-signed certificate and the requirement for custom SNI headers. It systematically checks the HTTP-to-HTTPS redirect, the injection of the X-Lab header on the main route, and the enforcement of both local and global rate limits. For the global rate limit test, the script uses a timestamp to generate unique user IDs, ensuring that each run starts with fresh counters and avoids interference from previous tests. The clear PASS or FAIL output for each test case provides immediate feedback on the cluster’s health, making it an invaluable tool for rapid iteration and troubleshooting.

Running this script marks the official completion of the lab, proving that all 12 steps were executed correctly and that the resulting system behaves as expected. The transition from manual curl commands to an automated test suite represents the operator’s maturing understanding of the Envoy Gateway stack. With this foundation, the operator is now prepared to explore more advanced features, such as weighted traffic splitting for canary deployments or the integration of external authentication providers. The lab provides the confidence and tooling needed to move beyond basic ingress and begin building sophisticated, reliable traffic management solutions on top of the Kubernetes Gateway API.

The transition from legacy ingress architecture to a modern Envoy Gateway setup was successfully demonstrated through this 12-step structured lab. Throughout the process, the importance of moving toward a typed, policy-driven model was emphasized, replacing the fragmented and unvalidated nature of traditional NGINX annotations with robust Gateway API standards. The implementation of local and global rate limiting showed how various architectural needs—from simple flood protection to precise per-user quotas—can be met using a single, unified control plane. By following this disciplined approach, the lab provided a clear roadmap for securing and scaling ingress traffic in clusters operating without the safety net of legacy controller maintenance. Moving forward, teams should consider integrating automated certificate management and exploring EnvoyPatchPolicy for deeper data plane customization. The final setup serves as a scalable template, ready for adaptation in production-grade environments where security and observability are paramount.

Subscribe to our weekly news digest.

Join now and become a part of our fast-growing community.

Invalid Email Address
Thanks for Subscribing!
We'll be sending you our best soon!
Something went wrong, please try again later