1
0
Fork 0
No description
Find a file
Joao Gilberto Magalhaes 3c7ef2d2a8 Update Swarm documentation to replace tags dynamically during release
- Added release tag replacement logic for `docs/swarm.md` to align with Kubernetes and Helm documentation updates.
- Ensured consistency in versioning across all deployment examples and documentation.
2025-12-04 11:18:19 -05:00
.github Update Swarm documentation to replace tags dynamically during release 2025-12-04 11:18:19 -05:00
.run Upload PyCharm default tests 2024-11-12 20:35:56 -06:00
.vscode Fix errors in the test 2023-02-08 19:27:50 -06:00
build Update Dockerfile. 2025-08-24 18:12:24 -04:00
deploy Remove version directive from all Docker Compose and Swarm configuration files. 2025-12-04 09:25:05 -05:00
docs Update JWT Validator examples and documentation with key generation steps 2025-12-04 11:02:32 -05:00
examples Update JWT Validator examples and documentation with key generation steps 2025-12-04 11:02:32 -05:00
helm/easyhaproxy [skip ci] Update from 4.5.0 to 4.6.0 2025-08-24 23:14:07 +00:00
src Update logging level for plugin loading and extend static example documentation 2025-12-04 09:09:33 -05:00
.dockerignore Minor changes in github actions 2022-08-26 16:05:18 -05:00
.gitignore Update Cloudflare examples to improve IP list as part of idempotent configuration 2025-12-04 10:22:16 -05:00
.gitpod.yml Refactoring to Python 2022-08-24 01:00:26 +00:00
build-multiarch.sh Code reorganization 2022-08-26 15:56:13 -05:00
CONTRIBUTING.md Update CONTRIBUTING.md 2024-06-04 21:31:19 -05:00
LICENSE Initial Commit 2018-09-16 21:03:17 -05:00
Makefile Add detailed release guide and update Makefile test command 2025-12-02 11:54:47 -05:00
README.md Add environment variable documentation for all plugins, reorganize plugin files for consistency 2025-12-02 11:47:19 -05:00
RELEASE.md Add detailed release guide and update Makefile test command 2025-12-02 11:54:47 -05:00
setup.py Refactor: tried to refactor code 2020-06-05 16:46:40 +02:00

EasyHAProxy

Opensource ByJG Build Status GitHub source GitHub license GitHub release Helm Version

EasyHAProxy

Service discovery for HAProxy

EasyHAProxy dynamically creates the haproxy.cfg based on metadata collected from your workloads (Docker labels, Swarm service labels, or Kubernetes ingress annotations).

EasyHAProxy can detect and configure HAProxy automatically on the following platforms:

  • Docker
  • Docker Swarm
  • Kubernetes
  • Static YAML definitions (EASYHAPROXY_DISCOVER=static)

Who is using?

EasyHAProxy is part of some projects:

  • Dokku
  • MicroK8s
  • DigitalOcean Marketplace

See detailed instructions on how to install below.

EasyHAProxy Mission

Easy to set up and low configuration to numerous features.

Features

EasyHAProxy will discover services based on Docker (or Swarm) labels and Kubernetes ingress annotations, then dynamically build the haproxy.cfg. Below, EasyHAProxy main features:

  • Support Automatic Certificate Management Environment (ACME) protocol compatible with Let's Encrypt and other CAs.
  • Set your custom SSL certificates
  • Balance traffic between multiple replicas
  • Set SSL policies (strict, default, loose) via EASYHAPROXY_SSL_MODE.
  • Set up HAProxy to listen to TCP.
  • Add redirects.
  • Enable/disable Stats on port 1936 with a custom password.
  • Enable/disable custom errors.

Also, it is possible to set up HAProxy from a simple Yaml file instead of creating haproxy.cfg file.

How Does It Work?

You don't need to change your current infrastructure and don't need to learn the HAProxy configuration.

The steps are:

  • Run the EasyHAProxy container;
  • Add some labels to the containers you want to be parsed by EasyHAProxy (see detailed instructions below);
  • EasyHAProxy will automatically detect the containers, set up, and reload the HAProxy configurations for you without downtime.

Detailed Instructions

For detailed instructions on how to use EasyHAProxy, follow the instructions for the platform you want to use:

Kubernetes Docker Swarm Docker Static

Or you can install using tools:

Helm MicroK8s Dokku DigitalOcean

Special Topics

If you already set up the EasyHAProxy, is time to go deeper:

Configuration Reference

Detailed configuration guides for advanced setups:

See EasyHAProxy in action

Click on the image to see the videos (use HD for better visualization)

Docker In Action Docker and Letsencrypt K8s In Action K8s and Letsencrypt Static Configuration TCP Mode

Here is the code applied in the examples above.


Open source ByJG