---
name: "traefik-kubernetes-ingress-route"
description: "Configure modern cloud-native routing with Traefik Kubernetes IngressRoute and custom Middlewares."
metadata:
  author: "Traefik Labs"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create traefik ingressroute"
  - "chain traefik middleware"
  - "configure traefik stripprefix"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Traefik IngressRoute & Middleware Pipeline

Configures Traefik v3: creating IngressRoute CRDs, chaining Middlewares (stripPrefix, basicAuth, rateLimit, forwardAuth), TLS options, canary weighted round-robin services, and TCP/UDP routing.

## When to Invoke
Invoke this skill whenever you need to:
- create traefik ingressroute
- chain traefik middleware
- configure traefik stripprefix

## Execution SOP & Rules
1. Define kind: IngressRoute with apiVersion: traefik.io/v1alpha1 specifying match rules (PathPrefix, Host).
2. Declare Middlewares: kind: Middleware with spec: { rateLimit: { average: 100, burst: 50 } }.
3. Attach middlewares to IngressRoute under spec.routes.middlewares.
4. Validate configuration in Traefik Web UI dashboard at :9000.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
