All Projects → adohe-zz → Kube2haproxy

adohe-zz / Kube2haproxy

Licence: apache-2.0
High Availability HAProxy auto configuration and auto service discovery for Kubernetes.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Kube2haproxy

Esa Restlight
ESA Restlight is a lightweight and rest-oriented web framework.
Stars: ✭ 67 (-62.98%)
Mutual labels:  haproxy
Kubernetes Pfsense Controller
Integrate Kubernetes and pfSense
Stars: ✭ 100 (-44.75%)
Mutual labels:  haproxy
Nuster
A high performance HTTP proxy cache server and RESTful NoSQL cache server based on HAProxy
Stars: ✭ 1,825 (+908.29%)
Mutual labels:  haproxy
Ansible Haproxy
Ansible role to set up (the latest version of) HAProxy in Ubuntu systems
Stars: ✭ 83 (-54.14%)
Mutual labels:  haproxy
Ansible Haproxy
Installs and configure HAProxy
Stars: ✭ 93 (-48.62%)
Mutual labels:  haproxy
Haproxy Configs
80+ HAProxy Configs for Hadoop, Big Data, NoSQL, Docker, Elasticsearch, SolrCloud, HBase, MySQL, PostgreSQL, Apache Drill, Hive, Presto, Impala, Hue, ZooKeeper, SSH, RabbitMQ, Redis, Riak, Cloudera, OpenTSDB, InfluxDB, Prometheus, Kibana, Graphite, Rancher etc.
Stars: ✭ 106 (-41.44%)
Mutual labels:  haproxy
Lethean Vpn
Lethean Virtual Private Network (VPN)
Stars: ✭ 29 (-83.98%)
Mutual labels:  haproxy
Haproxy
HAProxy Load Balancer's development branch (mirror of git.haproxy.org)
Stars: ✭ 2,463 (+1260.77%)
Mutual labels:  haproxy
Haproxy
🏎 Built-from-source container image of the HAProxy proxy and load balancer
Stars: ✭ 100 (-44.75%)
Mutual labels:  haproxy
Haproxy
Development repository for the haproxy cookbook
Stars: ✭ 138 (-23.76%)
Mutual labels:  haproxy
Docker Cloud Platform
使用Docker构建云平台,Docker云平台系列共三讲,Docker基础、Docker进阶、基于Docker的云平台方案。OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 86 (-52.49%)
Mutual labels:  haproxy
Haproxyadmin
A python library to interact with HAProxy over UNIX socket
Stars: ✭ 87 (-51.93%)
Mutual labels:  haproxy
Redishappy
Redis Sentinel high availabillity daemon
Stars: ✭ 111 (-38.67%)
Mutual labels:  haproxy
Haproxy Rest
REST interface for HAproxy written in GO
Stars: ✭ 79 (-56.35%)
Mutual labels:  haproxy
Go Proxyproto
A Go library implementation of the PROXY protocol, versions 1 and 2.
Stars: ✭ 151 (-16.57%)
Mutual labels:  haproxy
Ansible Config encoder filters
Ansible role used to deliver the Config Encoder Filters.
Stars: ✭ 48 (-73.48%)
Mutual labels:  haproxy
Rpm Haproxy
HAproxy RPM spec and builds for CentOS 6/7
Stars: ✭ 103 (-43.09%)
Mutual labels:  haproxy
Zabbix Haproxy
HAProxy Zabbix Discovery and Template
Stars: ✭ 169 (-6.63%)
Mutual labels:  haproxy
Dataplaneapi
HAProxy Data Plane API
Stars: ✭ 152 (-16.02%)
Mutual labels:  haproxy
Ansible Role Haproxy
Ansible Role - HAProxy
Stars: ✭ 112 (-38.12%)
Mutual labels:  haproxy

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:

keepalived_haproxy

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

--address string                        The IP address to serve on (set to 0.0.0.0 for all interfaces)
--alsologtostderr value                 log to standard error as well as files
--device string                         Network device to bind service IP
--haproxy-config-file string            Path of config file for haproxy (default "/etc/haproxy/haproxy.cfg")
--haproxy-reload-interval duration      Controls how often haproxy reload is invoked (default 5s)
--haproxy-reload-script string          Path of haproxy reload script
--haproxy-template-file string          Path of haproxy template
--keepalived-config-file string         Path of config file for keepalived (default "/etc/keepalived/keepalived.conf")
--keepalived-reload-interval duration   Controls how often keepalived reload is invoked (default 2s)
--keepalived-reload-script string       Path of keepalived reload script
--keepalived-template-file string       Path of keepalived config template
--kube-api-burst int                    Burst to use while talking with kubernets apiserver (default 10)
--kube-api-qps value                    QPS to use while talking with kubernetes apiserver (default 5)
--kubeconfig string                     Path to kubeconfig file with authorization information (the master location is set by the master flag).

Licensing

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].