This example requires the http-echo Docker image, which is used as a simple backend application for testing TLS passthrough and HTTP routing.
The source code for the image is located in the HAProxy Unified Gateway repository:
https://github.com/haproxytech/haproxy-unified-gateway
- Clone the repository (or navigate to the folder if you already have it):
git clone --depth 1 https://github.com/haproxytech/haproxy-unified-gateway
cd haproxy-unified-gateway/ci/http-echo- Build the Docker image
docker build -t http-echo:latest .- Make the image available to your Kubernetes cluster
- Option 1: Push to a Docker registry accessible from the cluster:
docker tag http-echo:latest <your-registry>/http-echo:latest
docker push <your-registry>/http-echo:latest- Option 2: Load the image into a Kind cluster (if you are using Kind)
kind load docker-image http-echo:latest --name <kind-cluster-name>After the image is available in your cluster, you can apply the example manifests, and the TLSRoute/HTTPRoute examples will use this image as the backend.
- Gateway API: Gateway API resource.
- HAProxy Unified Gateway: How to deploy the HAProxy Unified Gateway controller.
- Echo Server: How to deploy an echo server.
- Hello World: A simple example of exposing a service with an HTTPRoute.
- Blue-Green Deployment: An example of traffic splitting between two versions of a service.