mcpField
T
traefik

traefik

github.com/davidcastagnetoaCloud & DevOps1124 installsUpdated 33w ago
Repository

About traefik

A skill for configuring Traefik as a reverse proxy and load balancer, aimed at Kubernetes setups with dynamically scaling services. It covers service discovery, routing, certificates, middleware, health checks, and metrics.

Key features

  1. 01Kubernetes service discovery
  2. 02IngressRoute routing configuration
  3. 03Let's Encrypt certificate setup
  4. 04Rate limiting and circuit breaker middleware
  5. 05Backend health checks and Prometheus metrics

Use cases

  1. 01Route API traffic to Kubernetes services
  2. 02Avoid manual updates as services scale
  3. 03Configure certificates and traffic controls

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davidcastagnetoa/skills --skill traefik

After installing, type/traefikin Claude Code to confirm it loaded.

Bundled files.gitignore

Details

From the project README

traefik

Traefik es un reverse proxy y load balancer moderno con autodiscovery de servicios en Kubernetes, Docker y otros orquestadores. Alternativa a Nginx con configuración declarativa y certificados automáticos.

When to use

Usar como alternativa al api_gateway_agent basado en Nginx si se prefiere autodiscovery nativo en Kubernetes. Especialmente útil en entornos donde los servicios se escalan dinámicamente.

Instructions

  1. Desplegar en Kubernetes: helm install traefik traefik/traefik.
  2. Configurar IngressRoute para el orquestador:
    apiVersion: traefik.io/v1alpha1
    kind: IngressRoute
    spec:
      routes:
        - match: Host(`api.verifid.com`) && PathPrefix(`/v1`)
          services:
            - name: orchestrator
              port: 8000
    
  3. Habilitar Let's Encrypt: configurar certificatesResolvers con ACME.
  4. Configurar middleware de rate limiting y circuit breaker.
  5. Habilitar dashboard en entorno de desarrollo: --api.dashboard=true.
  6. Configurar health checks activos hacia los backends.
  7. Exponer métricas Prometheus: --metrics.prometheus=true.

Notes

  • Traefik tiene mayor overhead que Nginx (~10-15% menos throughput) pero mejor DX.
  • El autodiscovery elimina la necesidad de reconfigurar manualmente al escalar servicios.
  • En producción de alto tráfico (>10K RPS), Nginx con Lua sigue siendo la opción más eficiente.

Comments

Markdown supported