1
0
Fork 0
docker-easy-haproxy/examples/kubernetes
Joao Gilberto Magalhaes 90b01b1f13 Add Kubernetes integration tests for EasyHAProxy examples
- Introduced a suite of pytest-based integration tests for Kubernetes using `kind`.
- Automated local installation of dependencies (`kind`, `kubectl`, and `helm`) when missing.
- Implemented fixtures for Kubernetes resource management and TLS secrets.
- Added end-to-end tests for HTTP and HTTPS ingress functionality.
2026-02-12 01:42:43 -05:00
..
.gitignore Add Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -05:00
cloudflare.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
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 Kubernetes integration tests for EasyHAProxy examples 2026-02-12 01:42:43 -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