针对 Kubernetes 的 HAProxy 自动配置和自动服务发现,可实现高可用性。
kube2haproxy is a daemon process that automatically configures Keepalived&HAProxy for services deployed on Kubernetes.
It features:
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:
git clone https://github.com/adohe/kube2haproxy.gitcd kube2haproxy; godep go build -o kube-haproxy main.go…kube2haproxy is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
暂无开放 Issues,或尚未同步最近议题。