1
0
Fork 0
docker-easy-haproxy/tests_e2e/kubernetes
Joao Gilberto Magalhaes 045dd3817e Migrate configuration paths to /etc/easyhaproxy and improve health check support in E2E tests
- Refactored HAProxy configuration files, templates, and paths to use `/etc/easyhaproxy` instead of `/etc/haproxy`.
- Updated Dockerfile to generate DH params and placeholder certificates in the new configuration directory.
- Added health check support with timeout to `DockerComposeFixture` in E2E test utilities.
- Adjusted tests, templates, and plugins to use the new `Consts`-based configuration paths.
- Introduced pytest fixtures for environment isolation and temporary directory management.
2026-02-15 14:32:16 -05:00
..
.gitignore Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
cloudflare.yml Migrate configuration paths to /etc/easyhaproxy and improve health check support in E2E tests 2026-02-15 14:32:16 -05:00
ip-whitelist.yml Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
jwt-validator-secret-example.yml Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
jwt-validator.yml Migrate configuration paths to /etc/easyhaproxy and improve health check support in E2E tests 2026-02-15 14:32:16 -05:00
plugins-combined.yml Migrate configuration paths to /etc/easyhaproxy and improve health check support in E2E tests 2026-02-15 14:32:16 -05:00
README.md Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
service.yml Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
service_tls.yml Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
setup-cluster.sh Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00
teardown-cluster.sh Migrate examples to tests_e2e directory structure 2026-02-12 17:05:04 -05:00

Kubernetes Examples

Self-contained examples for EasyHAProxy ingress controller. All documentation is in the YAML files as header comments.

Quick Start

  1. Pick an example below
  2. Open the YAML file
  3. Read the header comments for complete instructions
  4. Run the commands step-by-step

Prerequisites

All examples require:

  • EasyHAProxy installed in your Kubernetes cluster
  • Node labeled for EasyHAProxy deployment

See header comments in each file for detailed setup instructions.

Basic Examples

File Description
service.yml Basic HTTP ingress with multiple domains
service_tls.yml HTTPS/TLS ingress with custom certificates

Plugin Examples

File Description
jwt-validator.yml JWT token validation for API protection
ip-whitelist.yml IP whitelist for admin panels or sensitive services
cloudflare.yml Restore real client IPs when behind Cloudflare CDN
plugins-combined.yml Multiple plugins combined for layered security

Documentation Structure

Each YAML file contains:

  • WHAT THIS DEMONSTRATES - Key features and concepts
  • REQUIREMENTS - Idempotent setup commands (safe to run multiple times)
  • HOW TO START - Command to apply the manifest
  • HOW TO VERIFY IT'S WORKING - Test commands with expected outputs
  • CLEAN UP - Commands to remove resources

Additional Documentation