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
- 01Kubernetes service discovery
- 02IngressRoute routing configuration
- 03Let's Encrypt certificate setup
- 04Rate limiting and circuit breaker middleware
- 05Backend health checks and Prometheus metrics
Use cases
- 01Route API traffic to Kubernetes services
- 02Avoid manual updates as services scale
- 03Configure certificates and traffic controls
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ davidcastagnetoa/ skills --skill traefikAfter installing, type/traefikin Claude Code to confirm it loaded.
Bundled files.gitignore
Details
From the project READMEtraefik
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
- Desplegar en Kubernetes:
helm install traefik traefik/traefik. - 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 - Habilitar Let's Encrypt: configurar
certificatesResolverscon ACME. - Configurar middleware de rate limiting y circuit breaker.
- Habilitar dashboard en entorno de desarrollo:
--api.dashboard=true. - Configurar health checks activos hacia los backends.
- 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