haproxy-kubernetes-ingress
by QuenchWorks
HAProxy Kubernetes Ingress Controller: Ingress through HAProxy with rate limiting, IP allow and deny lists and ACLs as annotations. Hardened by QuenchWorks: built from source on QuenchWorks HAProxy, CVE-gated, cosign-signed and pinned by digest.
About this chart
Quenchworks HAProxy Kubernetes Ingress
Hardened HAProxy Kubernetes Ingress Controller: serves Ingress resources through HAProxy, with rate limiting, IP allow and deny lists, ACLs, redirects and TLS as annotations. The image is the controller, gopherd and upstream's secret-blocking HAProxy wrapper built from source on QuenchWorks' HAProxy 3.4; it runs as uid 1001 on a read-only rootfs, CVE-gated at build, cosign-signed and pinned by digest.
Install
helm install haproxy oci://ghcr.io/quenchworks/charts/haproxy-kubernetes-ingress
Then route an Ingress with spec.ingressClassName: haproxy. An init container installs or updates the controller's
CRDs from the image on every rollout.
Attack protection, per Ingress
metadata:
annotations:
haproxy.org/deny-list: "203.0.113.0/24, 198.51.100.7"
haproxy.org/rate-limit-requests: "100"
haproxy.org/rate-limit-period: "10s"
The same keys without the prefix in config apply to every Ingress.
Configuration
| Key | Default | What it does |
|---|---|---|
ingressClass.name | haproxy | The IngressClass this controller serves |
ingressClass.default | false | Also serve Ingresses with no class |
config | {} | Global annotations, as the controller's ConfigMap |
extraArgs | [] | More controller flags |
service.type | LoadBalancer | Public entry point (HTTP 80, HTTPS 443) |
resources.limits.memory | 512Mi | gopherd gives HAProxy two thirds of it, the controller one third |
Deploy haproxy-kubernetes-ingress with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has haproxy-kubernetes-ingress on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthaproxy-kubernetes-ingress is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply