HAProxy Unified Gateway
Release notes
HAProxy Unified Gateway is a Kubernetes controller that implements the Kubernetes Gateway API specification. The project is available on GitHub as open source.
Version 1.1 Jump to heading
The HAProxy Unified Gateway 1.1 release includes:
Upgraded HAProxy
This version upgrades to HAProxy 3.4 as the underlying load balancer engine.
Ingress and IngressClass support
You can now create standard Kubernetes Ingress and IngressClass resources, and HAProxy Unified Gateway detects them and translates them into Gateway API routes. This lets you keep the Ingress manifests you already have, and move from another ingress controller to HAProxy Unified Gateway incrementally rather than rewriting every route up front.
Support for these resources is opt-in. To use them:
- Set the
--enable-ingressstartup argument to turn the feature on. - Set
--ingress-classif you deploy multiple controllers and need to assign different classes to them. A controller manages only the Ingress resources that have a matchingingressClassName. - Set
--empty-ingress-classif you want the controller to also manage Ingress resources that leave the class unset.
ListenerSet
This version adds support for the Gateway API ListenerSet resource. A ListenerSet defines listeners for a Gateway in a resource of its own, so teams can attach listeners to a shared Gateway without editing the Gateway resource itself.
TCP routing
This version adds full core support for the TCPRoute resource, which routes plain TCP traffic to backend services, and adds support for TCP listeners on a Gateway.
Version 1.0 Jump to heading
The HAProxy Unified Gateway 1.0 release includes:
Gateway API compliance
Version 1.0 is compliant with these versions of the Gateway API: 1.5.0 experimental, 1.4.0, and 1.3.0.
Support for Gateway API resources
This version supports the following Gateway API resources:
| Resource | Description |
|---|---|
| GatewayClass | Represents a class of Gateways that you can instantiate. When installing HAProxy Unified Gateway, you’ll define a GatewayClass that maps to the HAProxy software. |
| Gateway | Is an instance of a proxy that routes traffic into your Kubernetes cluster. The HAProxy Unified Gateway runs a controller that monitors your cluster for Gateway declarations of class HAProxy, then allocates a proxy for each. A Gateway listens for incoming traffic and relays them to backend applications based on Route rules. |
| HTTPRoute | Sets routing rules for HTTP / HTTPS traffic that was received by a compatible listener on the Gateway. |
| TLSRoute | Sets routing rules for TCP traffic encrypted by TLS that was received by a compatible listener on the Gateway. |
In addition, HAProxy Unified Gateway supports these custom resources:
| Resource | Description |
|---|---|
| HugConf | Defines operational parameters such as logging levels and process-wide settings. |
| HugGate | Links a GatewayClass to an HAProxy configuration. |
| Global | Allows you to set HAProxy global settings. |
| Defaults | Allows you to set HAProxy defaults settings. |
| Backend | Allows you to set HAProxy backend settings. |
Options for routing HTTP
When configuring routing rules for HTTP traffic, you’ll use an HTTPRoute resource. HAProxy Unified Gateway implements these features:
- Hostname-based routing, where traffic is routed based on the requested hostname
- Path-based routing, where traffic is routed based on the URL path
- Weighted traffic splitting, for blue-green deployments or canary deployments
- Path rewriting, to change the requested URL path before sending the request to the backend application
- Session persistence, which overrides load balancing to send requests from the same client to the same backend pod
Options for routing TLS
When configuring routing rules for TLS-encrypted TCP traffic, you’ll use a TLSRoute resource. HAProxy Unified Gateway implements these features:
- End-to-end encryption through SSL passthrough, wherein the Gateway doesn’t decrypt the traffic but passes it straight through to the backend application
- SNI-based routing
Prometheus metrics
You can enable Prometheus metrics to view the real-time health of your HAProxy Unified Gateway installation.
High performance
Server management is handled through the HAProxy Runtime API, which means that when adding and removing servers, we avoid the need for full reloads to update the configuration. This leads to better performance.