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: Middleware
metadata:
name: secured
namespace: apps
spec:
chain:
middlewares:
- name: https-only
- name: known-ips

Configuration Options

FieldDescriptionDefaultRequired
middlewaresList of middlewares to chain.
The middlewares have to be in the same namespace as the chain middleware.
Yes