Skip to main content

Chain Middlewares

The chain middleware enables you to define reusable combinations of other pieces of middleware. It makes it effortless to reuse the same groups.


Below is an example of a chain containing:

---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: test
namespace: apps
spec:
entryPoints:
- web
routes:
- match: Host(`mydomain`)
kind: Rule
services:
- name: whoami
port: 80
middlewares:
- name: secured