1
0
Fork 0
docker-easy-haproxy/examples/kubernetes
Joao Gilberto Magalhaes 1fd5873dc9 Add Cloudflare plugin tests with base64-encoded IP list support
- Enhanced the Cloudflare plugin by adding support for base64-encoded IP lists, prioritizing them over built-in lists.
- Introduced Kubernetes integration tests for the Cloudflare IP restoration feature.
- Validated plugin behavior for resource creation, pod readiness, ingress access, and HAProxy configurations.
- Improved annotations in `cloudflare.yml` for Kubernetes-native compatibility.
- Updated unit tests to cover IP list precedence, invalid base64 handling, and metadata verification.
2026-02-12 16:03:50 -05:00
..
.gitignore Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
cloudflare.yml Add Cloudflare plugin tests with base64-encoded IP list support 2026-02-12 16:03:50 -05:00
ip-whitelist.yml Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
jwt-validator-secret-example.yml Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
jwt-validator.yml Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
plugins-combined.yml Add IngressClass resource and update references to spec.ingressClassName across templates, examples, and documentation for consistency and backward compatibility 2025-12-15 20:33:51 -05:00
README.md Revamp Swarm example documentation and streamline deployment instructions 2025-12-04 10:07:17 -05:00
service.yml Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
service_tls.yml Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
setup-cluster.sh Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
teardown-cluster.sh Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
test_kubernetes.py Add Cloudflare plugin tests with base64-encoded IP list support 2026-02-12 16:03:50 -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