Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

kube2haproxy

> 云原生
Open source

High Availability HAProxy auto configuration and auto service discovery for Kubernetes.

184 stars0 likes0 views
WebsiteGitHub

About

High Availability HAProxy auto configuration and auto service discovery for Kubernetes.

kube2haproxy

kube2haproxy is a daemon process that automatically configures Keepalived&HAProxy for services deployed on Kubernetes.

It features:

  • High Availability HAProxy, support ip failover.
  • Auto configure Keepalived&HAProxy configuration files based your template. You can provision your own template in production to enable SSL and notifications.
  • Efficient Keepalived&HAProxy reload with controlled rate.
  • Developed in Golang, deployment on Keepalived&HAProxy instances has no additional dependency.
  • Integrates with Prometheus to monitor metrics.

Theory of Operation

Compared with kube-proxy(also noted as distributed proxy), kube2haproxy runs locally on node of central HAProxy cluster and is responsible for HAProxy configuration update and reload. kube2haproxy watches kube-apiserver for service&endpoints resources change, and reload HAProxy in rate limited manner. To support high availability, we use Keepalived, kube2haproxy is also responsible for Keepalived configuration update and reload. The following diagram demonstrates how this worked in a 2 nodes cluster:

Build

  • Step 1: Git clone the kube2haproxy repo: git clone https://github.com/adohe/kube2haproxy.git
  • Step 2: Build with godep: cd kube2haproxy; godep go build -o kube-haproxy main.go

Key command line options

…

Licensing

kube2haproxy is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gohaproxykeepalivedkubernetesreload-haproxy

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,