2021-03-03 14:32:04 +00:00
---
apiVersion : apiextensions.k8s.io/v1
kind : CustomResourceDefinition
metadata :
annotations :
2021-09-02 12:40:08 +00:00
controller-gen.kubebuilder.io/version : v0.6.2
2021-03-03 14:32:04 +00:00
creationTimestamp : null
name : middlewares.traefik.containo.us
spec :
group : traefik.containo.us
names :
kind : Middleware
listKind : MiddlewareList
plural : middlewares
singular : middleware
scope : Namespaced
versions :
- name : v1alpha1
schema :
openAPIV3Schema :
2022-06-24 10:40:08 +00:00
description : 'Middleware is the CRD implementation of a Traefik Middleware.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/overview/'
2021-03-03 14:32:04 +00:00
properties :
apiVersion :
2021-05-05 15:50:04 +00:00
description : 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
2021-03-03 14:32:04 +00:00
type : string
kind :
2021-05-05 15:50:04 +00:00
description : 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2021-03-03 14:32:04 +00:00
type : string
metadata :
type : object
spec :
2022-06-24 10:40:08 +00:00
description : MiddlewareSpec defines the desired state of a Middleware.
2021-03-03 14:32:04 +00:00
properties :
addPrefix :
2022-06-24 10:40:08 +00:00
description : 'AddPrefix holds the add prefix middleware configuration.
This middleware updates the path of a request before forwarding
2022-09-14 14:52:03 +00:00
it. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/addprefix/'
2021-03-03 14:32:04 +00:00
properties :
prefix :
2022-06-24 10:40:08 +00:00
description : Prefix is the string to add before the current path
in the requested URL. It should include a leading slash (/).
2021-03-03 14:32:04 +00:00
type : string
type : object
basicAuth :
2022-06-24 10:40:08 +00:00
description : 'BasicAuth holds the basic auth middleware configuration.
This middleware restricts access to your services to known users.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/basicauth/'
2021-03-03 14:32:04 +00:00
properties :
headerField :
2022-06-24 10:40:08 +00:00
description : 'HeaderField defines a header field to store the
2022-09-14 14:52:03 +00:00
authenticated user. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/basicauth/#headerfield'
2021-03-03 14:32:04 +00:00
type : string
realm :
2022-06-24 10:40:08 +00:00
description : 'Realm allows the protected resources on a server
to be partitioned into a set of protection spaces, each with
its own authentication scheme. Default : traefik.'
2021-03-03 14:32:04 +00:00
type : string
removeHeader :
2022-06-24 10:40:08 +00:00
description : 'RemoveHeader sets the removeHeader option to true
to remove the authorization header before forwarding the request
to your service. Default : false .'
2021-03-03 14:32:04 +00:00
type : boolean
secret :
2022-06-24 10:40:08 +00:00
description : Secret is the name of the referenced Kubernetes Secret
containing user credentials.
2021-03-03 14:32:04 +00:00
type : string
type : object
buffering :
2022-06-24 10:40:08 +00:00
description : 'Buffering holds the buffering middleware configuration.
This middleware retries or limits the size of requests that can
2022-09-14 14:52:03 +00:00
be forwarded to backends. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/buffering/#maxrequestbodybytes'
2021-03-03 14:32:04 +00:00
properties :
maxRequestBodyBytes :
2022-06-24 10:40:08 +00:00
description : 'MaxRequestBodyBytes defines the maximum allowed
body size for the request (in bytes). If the request exceeds
the allowed size, it is not forwarded to the service, and the
client gets a 413 (Request Entity Too Large) response. Default :
0 (no maximum).'
2021-03-03 14:32:04 +00:00
format : int64
type : integer
maxResponseBodyBytes :
2022-06-24 10:40:08 +00:00
description : 'MaxResponseBodyBytes defines the maximum allowed
response size from the service (in bytes). If the response exceeds
the allowed size, it is not forwarded to the client. The client
gets a 500 (Internal Server Error) response instead. Default :
0 (no maximum).'
2021-03-03 14:32:04 +00:00
format : int64
type : integer
memRequestBodyBytes :
2022-06-24 10:40:08 +00:00
description : 'MemRequestBodyBytes defines the threshold (in bytes)
from which the request will be buffered on disk instead of in
memory. Default : 1048576 (1Mi).'
2021-03-03 14:32:04 +00:00
format : int64
type : integer
memResponseBodyBytes :
2022-06-24 10:40:08 +00:00
description : 'MemResponseBodyBytes defines the threshold (in bytes)
from which the response will be buffered on disk instead of
in memory. Default : 1048576 (1Mi).'
2021-03-03 14:32:04 +00:00
format : int64
type : integer
retryExpression :
2022-06-24 10:40:08 +00:00
description : 'RetryExpression defines the retry conditions. It
is a logical combination of functions with operators AND (&&)
2022-09-14 14:52:03 +00:00
and OR (||). More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/buffering/#retryexpression'
2021-03-03 14:32:04 +00:00
type : string
type : object
chain :
2022-06-24 10:40:08 +00:00
description : 'Chain holds the configuration of the chain middleware.
This middleware enables to define reusable combinations of other
2022-09-14 14:52:03 +00:00
pieces of middleware. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/chain/'
2021-03-03 14:32:04 +00:00
properties :
middlewares :
2022-06-24 10:40:08 +00:00
description : Middlewares is the list of MiddlewareRef which composes
the chain.
2021-03-03 14:32:04 +00:00
items :
2022-06-24 10:40:08 +00:00
description : MiddlewareRef is a reference to a Middleware resource.
2021-03-03 14:32:04 +00:00
properties :
name :
2022-06-24 10:40:08 +00:00
description : Name defines the name of the referenced Middleware
resource.
2021-03-03 14:32:04 +00:00
type : string
namespace :
2022-06-24 10:40:08 +00:00
description : Namespace defines the namespace of the referenced
Middleware resource.
2021-03-03 14:32:04 +00:00
type : string
required :
- name
type : object
type : array
type : object
circuitBreaker :
description : CircuitBreaker holds the circuit breaker configuration.
properties :
2022-04-05 10:30:08 +00:00
checkPeriod :
anyOf :
- type : integer
- type : string
description : CheckPeriod is the interval between successive checks
of the circuit breaker condition (when in standby state).
x-kubernetes-int-or-string : true
2021-03-03 14:32:04 +00:00
expression :
2022-04-05 10:30:08 +00:00
description : Expression is the condition that triggers the tripped
state.
2021-03-03 14:32:04 +00:00
type : string
2022-04-05 10:30:08 +00:00
fallbackDuration :
anyOf :
- type : integer
- type : string
description : FallbackDuration is the duration for which the circuit
breaker will wait before trying to recover (from a tripped state).
x-kubernetes-int-or-string : true
recoveryDuration :
anyOf :
- type : integer
- type : string
description : RecoveryDuration is the duration for which the circuit
breaker will try to recover (as soon as it is in recovering
state).
x-kubernetes-int-or-string : true
2021-03-03 14:32:04 +00:00
type : object
compress :
2022-06-24 10:40:08 +00:00
description : 'Compress holds the compress middleware configuration.
This middleware compresses responses before sending them to the
2022-09-14 14:52:03 +00:00
client, using gzip compression. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/compress/'
2021-03-03 14:32:04 +00:00
properties :
excludedContentTypes :
2022-06-24 10:40:08 +00:00
description : ExcludedContentTypes defines the list of content
types to compare the Content-Type header of the incoming requests
and responses before compressing.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
2021-09-20 16:00:08 +00:00
minResponseBodyBytes :
2022-06-24 10:40:08 +00:00
description : 'MinResponseBodyBytes defines the minimum amount
of bytes a response body must have to be compressed. Default :
1024 .'
2021-09-20 16:00:08 +00:00
type : integer
2021-03-03 14:32:04 +00:00
type : object
contentType :
2022-06-24 10:40:08 +00:00
description : ContentType holds the content-type middleware configuration.
This middleware exists to enable the correct behavior until at least
the default one can be changed in a future version.
2021-03-03 14:32:04 +00:00
properties :
autoDetect :
2022-06-24 10:40:08 +00:00
description : AutoDetect specifies whether to let the `Content-Type`
header, if it has not been set by the backend, be automatically
set to a value derived from the contents of the response. As
a proxy, the default behavior should be to leave the header
alone, regardless of what the backend did with it. However,
the historic default was to always auto-detect and set the header
if it was nil, and it is going to be kept that way in order
to support users currently relying on it.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
digestAuth :
2022-06-24 10:40:08 +00:00
description : 'DigestAuth holds the digest auth middleware configuration.
This middleware restricts access to your services to known users.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/digestauth/'
2021-03-03 14:32:04 +00:00
properties :
headerField :
2022-06-24 10:40:08 +00:00
description : 'HeaderField defines a header field to store the
2022-09-14 14:52:03 +00:00
authenticated user. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/basicauth/#headerfield'
2021-03-03 14:32:04 +00:00
type : string
realm :
2022-06-24 10:40:08 +00:00
description : 'Realm allows the protected resources on a server
to be partitioned into a set of protection spaces, each with
its own authentication scheme. Default : traefik.'
2021-03-03 14:32:04 +00:00
type : string
removeHeader :
2022-06-24 10:40:08 +00:00
description : RemoveHeader defines whether to remove the authorization
header before forwarding the request to the backend.
2021-03-03 14:32:04 +00:00
type : boolean
secret :
2022-06-24 10:40:08 +00:00
description : Secret is the name of the referenced Kubernetes Secret
containing user credentials.
2021-03-03 14:32:04 +00:00
type : string
type : object
errors :
2022-06-24 10:40:08 +00:00
description : 'ErrorPage holds the custom error middleware configuration.
This middleware returns a custom page in lieu of the default, according
2022-09-14 14:52:03 +00:00
to configured ranges of HTTP Status codes. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/errorpages/'
2021-03-03 14:32:04 +00:00
properties :
query :
2022-06-24 10:40:08 +00:00
description : Query defines the URL for the error page (hosted
by service). The {status} variable can be used in order to insert
the status code in the URL.
2021-03-03 14:32:04 +00:00
type : string
service :
2022-06-24 10:40:08 +00:00
description : 'Service defines the reference to a Kubernetes Service
2022-09-14 14:52:03 +00:00
that will serve the error page. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/errorpages/#service'
2021-03-03 14:32:04 +00:00
properties :
kind :
2022-06-24 10:40:08 +00:00
description : Kind defines the kind of the Service.
2021-03-03 14:32:04 +00:00
enum :
- Service
- TraefikService
type : string
name :
2022-06-24 10:40:08 +00:00
description : Name defines the name of the referenced Kubernetes
Service or TraefikService. The differentiation between the
two is specified in the Kind field.
2021-03-03 14:32:04 +00:00
type : string
namespace :
2022-06-24 10:40:08 +00:00
description : Namespace defines the namespace of the referenced
Kubernetes Service or TraefikService.
2021-03-03 14:32:04 +00:00
type : string
passHostHeader :
2022-06-24 10:40:08 +00:00
description : PassHostHeader defines whether the client Host
header is forwarded to the upstream Kubernetes Service.
By default, passHostHeader is true.
2021-03-03 14:32:04 +00:00
type : boolean
port :
anyOf :
- type : integer
- type : string
2022-06-24 10:40:08 +00:00
description : Port defines the port of a Kubernetes Service.
This can be a reference to a named port.
2021-03-03 14:32:04 +00:00
x-kubernetes-int-or-string : true
responseForwarding :
2022-06-24 10:40:08 +00:00
description : ResponseForwarding defines how Traefik forwards
the response from the upstream Kubernetes Service to the
client.
2021-03-03 14:32:04 +00:00
properties :
flushInterval :
2022-06-24 10:40:08 +00:00
description : 'FlushInterval defines the interval, in milliseconds,
in between flushes to the client while copying the response
body. A negative value means to flush immediately after
each write to the client. This configuration is ignored
when ReverseProxy recognizes a response as a streaming
response; for such responses, writes are flushed to
the client immediately. Default : 100ms'
2021-03-03 14:32:04 +00:00
type : string
type : object
scheme :
2022-06-24 10:40:08 +00:00
description : Scheme defines the scheme to use for the request
to the upstream Kubernetes Service. It defaults to https
when Kubernetes Service port is 443, http otherwise.
2021-03-03 14:32:04 +00:00
type : string
serversTransport :
2022-06-24 10:40:08 +00:00
description : ServersTransport defines the name of ServersTransport
resource to use. It allows to configure the transport between
Traefik and your servers. Can only be used on a Kubernetes
Service.
2021-03-03 14:32:04 +00:00
type : string
sticky :
2022-06-24 10:40:08 +00:00
description : 'Sticky defines the sticky sessions configuration.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/routing/services/#sticky-sessions'
2021-03-03 14:32:04 +00:00
properties :
cookie :
2022-06-24 10:40:08 +00:00
description : Cookie defines the sticky cookie configuration.
2021-03-03 14:32:04 +00:00
properties :
httpOnly :
2022-06-24 10:40:08 +00:00
description : HTTPOnly defines whether the cookie can
be accessed by client-side APIs, such as JavaScript.
2021-03-03 14:32:04 +00:00
type : boolean
name :
2022-06-24 10:40:08 +00:00
description : Name defines the Cookie name.
2021-03-03 14:32:04 +00:00
type : string
sameSite :
2022-06-24 10:40:08 +00:00
description : 'SameSite defines the same site policy.
More info : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite'
2021-03-03 14:32:04 +00:00
type : string
secure :
2022-06-24 10:40:08 +00:00
description : Secure defines whether the cookie can
only be transmitted over an encrypted connection
(i.e. HTTPS).
2021-03-03 14:32:04 +00:00
type : boolean
type : object
type : object
strategy :
2022-06-24 10:40:08 +00:00
description : Strategy defines the load balancing strategy
between the servers. RoundRobin is the only supported value
at the moment.
2021-03-03 14:32:04 +00:00
type : string
weight :
2022-06-24 10:40:08 +00:00
description : Weight defines the weight and should only be
specified when Name references a TraefikService object (and
to be precise, one that embeds a Weighted Round Robin).
2021-03-03 14:32:04 +00:00
type : integer
required :
- name
type : object
status :
2022-06-24 10:40:08 +00:00
description : Status defines which status or range of statuses
should result in an error page. It can be either a status code
as a number (500), as multiple comma-separated numbers (500,502),
as ranges by separating two codes with a dash (500-599), or
a combination of the two (404,418,500-599).
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
forwardAuth :
2022-06-24 10:40:08 +00:00
description : 'ForwardAuth holds the forward auth middleware configuration.
This middleware delegates the request authentication to a Service.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/forwardauth/'
2021-03-03 14:32:04 +00:00
properties :
address :
2022-06-24 10:40:08 +00:00
description : Address defines the authentication server address.
2021-03-03 14:32:04 +00:00
type : string
authRequestHeaders :
2022-06-24 10:40:08 +00:00
description : AuthRequestHeaders defines the list of the headers
to copy from the request to the authentication server. If not
set or empty then all request headers are passed.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
authResponseHeaders :
2022-06-24 10:40:08 +00:00
description : AuthResponseHeaders defines the list of headers to
copy from the authentication server response and set on forwarded
request, replacing any existing conflicting headers.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
authResponseHeadersRegex :
2022-06-24 10:40:08 +00:00
description : 'AuthResponseHeadersRegex defines the regex to match
headers to copy from the authentication server response and
set on forwarded request, after stripping all headers that match
2022-09-14 14:52:03 +00:00
the regex. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/forwardauth/#authresponseheadersregex'
2021-03-03 14:32:04 +00:00
type : string
tls :
2022-06-24 10:40:08 +00:00
description : TLS defines the configuration used to secure the
connection to the authentication server.
2021-03-03 14:32:04 +00:00
properties :
caOptional :
type : boolean
caSecret :
2022-06-24 10:40:08 +00:00
description : CASecret is the name of the referenced Kubernetes
Secret containing the CA to validate the server certificate.
The CA certificate is extracted from key `tls.ca` or `ca.crt`.
2021-03-03 14:32:04 +00:00
type : string
certSecret :
2022-06-24 10:40:08 +00:00
description : CertSecret is the name of the referenced Kubernetes
Secret containing the client certificate. The client certificate
is extracted from the keys `tls.crt` and `tls.key`.
2021-03-03 14:32:04 +00:00
type : string
insecureSkipVerify :
2022-06-24 10:40:08 +00:00
description : InsecureSkipVerify defines whether the server
certificates should be validated.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
trustForwardHeader :
2022-06-24 10:40:08 +00:00
description : 'TrustForwardHeader defines whether to trust (ie :
forward) all X-Forwarded-* headers.'
2021-03-03 14:32:04 +00:00
type : boolean
type : object
headers :
2022-06-24 10:40:08 +00:00
description : 'Headers holds the headers middleware configuration.
This middleware manages the requests and responses headers. More
2022-09-14 14:52:03 +00:00
info : https://doc.traefik.io/traefik/v2.9/middlewares/http/headers/#customrequestheaders'
2021-03-03 14:32:04 +00:00
properties :
accessControlAllowCredentials :
2022-06-24 10:40:08 +00:00
description : AccessControlAllowCredentials defines whether the
request can include user credentials.
2021-03-03 14:32:04 +00:00
type : boolean
accessControlAllowHeaders :
2022-06-24 10:40:08 +00:00
description : AccessControlAllowHeaders defines the Access-Control-Request-Headers
values sent in preflight response.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
accessControlAllowMethods :
2022-06-24 10:40:08 +00:00
description : AccessControlAllowMethods defines the Access-Control-Request-Method
values sent in preflight response.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
accessControlAllowOriginList :
2021-05-05 15:50:04 +00:00
description : AccessControlAllowOriginList is a list of allowable
origins. Can also be a wildcard origin "*".
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
accessControlAllowOriginListRegex :
2021-05-05 15:50:04 +00:00
description : AccessControlAllowOriginListRegex is a list of allowable
origins written following the Regular Expression syntax (https://golang.org/pkg/regexp/).
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
accessControlExposeHeaders :
2022-06-24 10:40:08 +00:00
description : AccessControlExposeHeaders defines the Access-Control-Expose-Headers
values sent in preflight response.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
accessControlMaxAge :
2022-06-24 10:40:08 +00:00
description : AccessControlMaxAge defines the time that a preflight
2021-05-05 15:50:04 +00:00
request may be cached.
2021-03-03 14:32:04 +00:00
format : int64
type : integer
addVaryHeader :
2022-06-24 10:40:08 +00:00
description : AddVaryHeader defines whether the Vary header is
automatically added/updated when the AccessControlAllowOriginList
is set.
2021-03-03 14:32:04 +00:00
type : boolean
allowedHosts :
2022-06-24 10:40:08 +00:00
description : AllowedHosts defines the fully qualified list of
allowed domain names.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
browserXssFilter :
2022-06-24 10:40:08 +00:00
description : BrowserXSSFilter defines whether to add the X-XSS-Protection
header with the value 1; mode=block.
2021-03-03 14:32:04 +00:00
type : boolean
contentSecurityPolicy :
2022-06-24 10:40:08 +00:00
description : ContentSecurityPolicy defines the Content-Security-Policy
header value.
2021-03-03 14:32:04 +00:00
type : string
contentTypeNosniff :
2022-06-24 10:40:08 +00:00
description : ContentTypeNosniff defines whether to add the X-Content-Type-Options
header with the nosniff value.
2021-03-03 14:32:04 +00:00
type : boolean
customBrowserXSSValue :
2022-06-24 10:40:08 +00:00
description : CustomBrowserXSSValue defines the X-XSS-Protection
header value. This overrides the BrowserXssFilter option.
2021-03-03 14:32:04 +00:00
type : string
customFrameOptionsValue :
2022-06-24 10:40:08 +00:00
description : CustomFrameOptionsValue defines the X-Frame-Options
header value. This overrides the FrameDeny option.
2021-03-03 14:32:04 +00:00
type : string
customRequestHeaders :
additionalProperties :
type : string
2022-06-24 10:40:08 +00:00
description : CustomRequestHeaders defines the header names and
values to apply to the request.
2021-03-03 14:32:04 +00:00
type : object
customResponseHeaders :
additionalProperties :
type : string
2022-06-24 10:40:08 +00:00
description : CustomResponseHeaders defines the header names and
values to apply to the response.
2021-03-03 14:32:04 +00:00
type : object
featurePolicy :
2021-07-15 12:02:11 +00:00
description: 'Deprecated : use PermissionsPolicy instead.'
2021-03-03 14:32:04 +00:00
type : string
forceSTSHeader :
2022-06-24 10:40:08 +00:00
description : ForceSTSHeader defines whether to add the STS header
even when the connection is HTTP.
2021-03-03 14:32:04 +00:00
type : boolean
frameDeny :
2022-06-24 10:40:08 +00:00
description : FrameDeny defines whether to add the X-Frame-Options
header with the DENY value.
2021-03-03 14:32:04 +00:00
type : boolean
hostsProxyHeaders :
2022-06-24 10:40:08 +00:00
description : HostsProxyHeaders defines the header keys that may
hold a proxied hostname value for the request.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
isDevelopment :
2022-06-24 10:40:08 +00:00
description : IsDevelopment defines whether to mitigate the unwanted
effects of the AllowedHosts, SSL, and STS options when developing.
Usually testing takes place using HTTP, not HTTPS, and on localhost,
not your production domain. If you would like your development
environment to mimic production with complete Host blocking,
SSL redirects, and STS headers, leave this as false.
2021-03-03 14:32:04 +00:00
type : boolean
2021-07-15 12:02:11 +00:00
permissionsPolicy :
2022-06-24 10:40:08 +00:00
description : PermissionsPolicy defines the Permissions-Policy
header value. This allows sites to control browser features.
2021-07-15 12:02:11 +00:00
type : string
2021-03-03 14:32:04 +00:00
publicKey :
2022-06-24 10:40:08 +00:00
description : PublicKey is the public key that implements HPKP
to prevent MITM attacks with forged certificates.
2021-03-03 14:32:04 +00:00
type : string
referrerPolicy :
2022-06-24 10:40:08 +00:00
description : ReferrerPolicy defines the Referrer-Policy header
value. This allows sites to control whether browsers forward
the Referer header to other sites.
2021-03-03 14:32:04 +00:00
type : string
sslForceHost :
2021-05-28 06:50:09 +00:00
description: 'Deprecated : use RedirectRegex instead.'
2021-03-03 14:32:04 +00:00
type : boolean
sslHost :
2021-05-28 06:50:09 +00:00
description: 'Deprecated : use RedirectRegex instead.'
2021-03-03 14:32:04 +00:00
type : string
sslProxyHeaders :
additionalProperties :
type : string
2022-06-24 10:40:08 +00:00
description : 'SSLProxyHeaders defines the header keys with associated
values that would indicate a valid HTTPS request. It can be
useful when using other proxies (example : "X-Forwarded-Proto" :
"https" ).'
2021-03-03 14:32:04 +00:00
type : object
sslRedirect :
2021-05-28 06:50:09 +00:00
description: 'Deprecated : use EntryPoint redirection or RedirectScheme
instead.'
2021-03-03 14:32:04 +00:00
type : boolean
sslTemporaryRedirect :
2021-05-28 06:50:09 +00:00
description: 'Deprecated : use EntryPoint redirection or RedirectScheme
instead.'
2021-03-03 14:32:04 +00:00
type : boolean
stsIncludeSubdomains :
2022-06-24 10:40:08 +00:00
description : STSIncludeSubdomains defines whether the includeSubDomains
directive is appended to the Strict-Transport-Security header.
2021-03-03 14:32:04 +00:00
type : boolean
stsPreload :
2022-06-24 10:40:08 +00:00
description : STSPreload defines whether the preload flag is appended
to the Strict-Transport-Security header.
2021-03-03 14:32:04 +00:00
type : boolean
stsSeconds :
2022-06-24 10:40:08 +00:00
description : STSSeconds defines the max-age of the Strict-Transport-Security
header. If set to 0, the header is not set.
2021-03-03 14:32:04 +00:00
format : int64
type : integer
type : object
inFlightReq :
2022-06-24 10:40:08 +00:00
description : 'InFlightReq holds the in-flight request middleware configuration.
This middleware limits the number of requests being processed and
2022-09-14 14:52:03 +00:00
served concurrently. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/inflightreq/'
2021-03-03 14:32:04 +00:00
properties :
amount :
2022-06-24 10:40:08 +00:00
description : Amount defines the maximum amount of allowed simultaneous
in-flight request. The middleware responds with HTTP 429 Too
Many Requests if there are already amount requests in progress
(based on the same sourceCriterion strategy).
2021-03-03 14:32:04 +00:00
format : int64
type : integer
sourceCriterion :
2022-06-24 10:40:08 +00:00
description : 'SourceCriterion defines what criterion is used to
group requests as originating from a common source. If several
strategies are defined at the same time, an error will be raised.
If none are set, the default is to use the requestHost. More
2022-09-14 14:52:03 +00:00
info : https://doc.traefik.io/traefik/v2.9/middlewares/http/inflightreq/#sourcecriterion'
2021-03-03 14:32:04 +00:00
properties :
ipStrategy :
2022-06-24 10:40:08 +00:00
description : 'IPStrategy holds the IP strategy configuration
2022-09-14 14:52:03 +00:00
used by Traefik to determine the client IP. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/ipwhitelist/#ipstrategy'
2021-03-03 14:32:04 +00:00
properties :
depth :
2022-06-24 10:40:08 +00:00
description : Depth tells Traefik to use the X-Forwarded-For
header and take the IP located at the depth position
(starting from the right).
2021-03-03 14:32:04 +00:00
type : integer
excludedIPs :
2022-06-24 10:40:08 +00:00
description : ExcludedIPs configures Traefik to scan the
X-Forwarded-For header and select the first IP not in
the list.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
requestHeaderName :
2022-06-24 10:40:08 +00:00
description : RequestHeaderName defines the name of the header
used to group incoming requests.
2021-03-03 14:32:04 +00:00
type : string
requestHost :
2022-06-24 10:40:08 +00:00
description : RequestHost defines whether to consider the request
Host as the source.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
type : object
ipWhiteList :
2022-06-24 10:40:08 +00:00
description : 'IPWhiteList holds the IP whitelist middleware configuration.
This middleware accepts / refuses requests based on the client IP.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/ipwhitelist/'
2021-03-03 14:32:04 +00:00
properties :
ipStrategy :
2022-06-24 10:40:08 +00:00
description : 'IPStrategy holds the IP strategy configuration used
2022-09-14 14:52:03 +00:00
by Traefik to determine the client IP. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/ipwhitelist/#ipstrategy'
2021-03-03 14:32:04 +00:00
properties :
depth :
2022-06-24 10:40:08 +00:00
description : Depth tells Traefik to use the X-Forwarded-For
header and take the IP located at the depth position (starting
from the right).
2021-03-03 14:32:04 +00:00
type : integer
excludedIPs :
2022-06-24 10:40:08 +00:00
description : ExcludedIPs configures Traefik to scan the X-Forwarded-For
header and select the first IP not in the list.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
sourceRange :
2022-06-24 10:40:08 +00:00
description : SourceRange defines the set of allowed IPs (or ranges
of allowed IPs by using CIDR notation).
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
passTLSClientCert :
2022-06-24 10:40:08 +00:00
description : 'PassTLSClientCert holds the pass TLS client cert middleware
configuration. This middleware adds the selected data from the passed
2022-09-14 14:52:03 +00:00
client TLS certificate to a header. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/passtlsclientcert/'
2021-03-03 14:32:04 +00:00
properties :
info :
2022-06-24 10:40:08 +00:00
description : Info selects the specific client certificate details
you want to add to the X-Forwarded-Tls-Client-Cert-Info header.
2021-03-03 14:32:04 +00:00
properties :
issuer :
2022-06-24 10:40:08 +00:00
description : Issuer defines the client certificate issuer
details to add to the X-Forwarded-Tls-Client-Cert-Info header.
2021-03-03 14:32:04 +00:00
properties :
commonName :
2022-06-24 10:40:08 +00:00
description : CommonName defines whether to add the organizationalUnit
information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
country :
2022-06-24 10:40:08 +00:00
description : Country defines whether to add the country
information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
domainComponent :
2022-06-24 10:40:08 +00:00
description : DomainComponent defines whether to add the
domainComponent information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
locality :
2022-06-24 10:40:08 +00:00
description : Locality defines whether to add the locality
information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
organization :
2022-06-24 10:40:08 +00:00
description : Organization defines whether to add the organization
information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
province :
2022-06-24 10:40:08 +00:00
description : Province defines whether to add the province
information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
serialNumber :
2022-06-24 10:40:08 +00:00
description : SerialNumber defines whether to add the serialNumber
information into the issuer.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
notAfter :
2022-06-24 10:40:08 +00:00
description : NotAfter defines whether to add the Not After
information from the Validity part.
2021-03-03 14:32:04 +00:00
type : boolean
notBefore :
2022-06-24 10:40:08 +00:00
description : NotBefore defines whether to add the Not Before
information from the Validity part.
2021-03-03 14:32:04 +00:00
type : boolean
sans :
2022-06-24 10:40:08 +00:00
description : Sans defines whether to add the Subject Alternative
Name information from the Subject Alternative Name part.
2021-03-03 14:32:04 +00:00
type : boolean
serialNumber :
2022-06-24 10:40:08 +00:00
description : SerialNumber defines whether to add the client
serialNumber information.
2021-03-03 14:32:04 +00:00
type : boolean
subject :
2022-06-24 10:40:08 +00:00
description : Subject defines the client certificate subject
details to add to the X-Forwarded-Tls-Client-Cert-Info header.
2021-03-03 14:32:04 +00:00
properties :
commonName :
2022-06-24 10:40:08 +00:00
description : CommonName defines whether to add the organizationalUnit
information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
country :
2022-06-24 10:40:08 +00:00
description : Country defines whether to add the country
information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
domainComponent :
2022-06-24 10:40:08 +00:00
description : DomainComponent defines whether to add the
domainComponent information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
locality :
2022-06-24 10:40:08 +00:00
description : Locality defines whether to add the locality
information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
organization :
2022-06-24 10:40:08 +00:00
description : Organization defines whether to add the organization
information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
2021-07-28 15:42:09 +00:00
organizationalUnit :
2022-06-24 10:40:08 +00:00
description : OrganizationalUnit defines whether to add
the organizationalUnit information into the subject.
2021-07-28 15:42:09 +00:00
type : boolean
2021-03-03 14:32:04 +00:00
province :
2022-06-24 10:40:08 +00:00
description : Province defines whether to add the province
information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
serialNumber :
2022-06-24 10:40:08 +00:00
description : SerialNumber defines whether to add the serialNumber
information into the subject.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
type : object
pem :
2022-06-24 10:40:08 +00:00
description : PEM sets the X-Forwarded-Tls-Client-Cert header with
2022-10-13 13:08:08 +00:00
the certificate.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
plugin :
additionalProperties :
x-kubernetes-preserve-unknown-fields : true
2022-06-29 09:04:09 +00:00
description : 'Plugin defines the middleware plugin configuration.
More info : https://doc.traefik.io/traefik/plugins/'
2021-03-03 14:32:04 +00:00
type : object
rateLimit :
2022-06-24 10:40:08 +00:00
description : 'RateLimit holds the rate limit configuration. This middleware
ensures that services will receive a fair amount of requests, and
2022-09-14 14:52:03 +00:00
allows one to define what fair is. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/ratelimit/'
2021-03-03 14:32:04 +00:00
properties :
average :
2022-06-24 10:40:08 +00:00
description : Average is the maximum rate, by default in requests/s,
allowed for the given source. It defaults to 0, which means
no rate limiting. The rate is actually defined by dividing Average
by Period. So for a rate below 1req/s, one needs to define a
Period larger than a second.
2021-03-03 14:32:04 +00:00
format : int64
type : integer
burst :
2022-06-24 10:40:08 +00:00
description : Burst is the maximum number of requests allowed to
arrive in the same arbitrarily small period of time. It defaults
to 1.
2021-03-03 14:32:04 +00:00
format : int64
type : integer
period :
anyOf :
- type : integer
- type : string
2022-06-24 10:40:08 +00:00
description : 'Period, in combination with Average, defines the
actual maximum rate, such as : r = Average / Period. It defaults
to a second.'
2021-03-03 14:32:04 +00:00
x-kubernetes-int-or-string : true
sourceCriterion :
2021-05-05 15:50:04 +00:00
description : SourceCriterion defines what criterion is used to
2022-06-24 10:40:08 +00:00
group requests as originating from a common source. If several
strategies are defined at the same time, an error will be raised.
If none are set, the default is to use the request's remote
address field (as an ipStrategy).
2021-03-03 14:32:04 +00:00
properties :
ipStrategy :
2022-06-24 10:40:08 +00:00
description : 'IPStrategy holds the IP strategy configuration
2022-09-14 14:52:03 +00:00
used by Traefik to determine the client IP. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/ipwhitelist/#ipstrategy'
2021-03-03 14:32:04 +00:00
properties :
depth :
2022-06-24 10:40:08 +00:00
description : Depth tells Traefik to use the X-Forwarded-For
header and take the IP located at the depth position
(starting from the right).
2021-03-03 14:32:04 +00:00
type : integer
excludedIPs :
2022-06-24 10:40:08 +00:00
description : ExcludedIPs configures Traefik to scan the
X-Forwarded-For header and select the first IP not in
the list.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
requestHeaderName :
2022-06-24 10:40:08 +00:00
description : RequestHeaderName defines the name of the header
used to group incoming requests.
2021-03-03 14:32:04 +00:00
type : string
requestHost :
2022-06-24 10:40:08 +00:00
description : RequestHost defines whether to consider the request
Host as the source.
2021-03-03 14:32:04 +00:00
type : boolean
type : object
type : object
redirectRegex :
2022-06-24 10:40:08 +00:00
description : 'RedirectRegex holds the redirect regex middleware configuration.
This middleware redirects a request using regex matching and replacement.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/redirectregex/#regex'
2021-03-03 14:32:04 +00:00
properties :
permanent :
2022-06-24 10:40:08 +00:00
description : Permanent defines whether the redirection is permanent
(301).
2021-03-03 14:32:04 +00:00
type : boolean
regex :
2022-06-24 10:40:08 +00:00
description : Regex defines the regex used to match and capture
elements from the request URL.
2021-03-03 14:32:04 +00:00
type : string
replacement :
2022-06-24 10:40:08 +00:00
description : Replacement defines how to modify the URL to have
the new target URL.
2021-03-03 14:32:04 +00:00
type : string
type : object
redirectScheme :
2022-06-24 10:40:08 +00:00
description : 'RedirectScheme holds the redirect scheme middleware
configuration. This middleware redirects requests from a scheme/port
2022-09-14 14:52:03 +00:00
to another. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/redirectscheme/'
2021-03-03 14:32:04 +00:00
properties :
permanent :
2022-06-24 10:40:08 +00:00
description : Permanent defines whether the redirection is permanent
(301).
2021-03-03 14:32:04 +00:00
type : boolean
port :
2022-06-24 10:40:08 +00:00
description : Port defines the port of the new URL.
2021-03-03 14:32:04 +00:00
type : string
scheme :
2022-06-24 10:40:08 +00:00
description : Scheme defines the scheme of the new URL.
2021-03-03 14:32:04 +00:00
type : string
type : object
replacePath :
2022-06-24 10:40:08 +00:00
description : 'ReplacePath holds the replace path middleware configuration.
This middleware replaces the path of the request URL and store the
2022-09-14 14:52:03 +00:00
original path in an X-Replaced-Path header. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/replacepath/'
2021-03-03 14:32:04 +00:00
properties :
path :
2022-06-24 10:40:08 +00:00
description : Path defines the path to use as replacement in the
request URL.
2021-03-03 14:32:04 +00:00
type : string
type : object
replacePathRegex :
2022-06-24 10:40:08 +00:00
description : 'ReplacePathRegex holds the replace path regex middleware
configuration. This middleware replaces the path of a URL using
2022-09-14 14:52:03 +00:00
regex matching and replacement. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/replacepathregex/'
2021-03-03 14:32:04 +00:00
properties :
regex :
2022-06-24 10:40:08 +00:00
description : Regex defines the regular expression used to match
and capture the path from the request URL.
2021-03-03 14:32:04 +00:00
type : string
replacement :
2022-06-24 10:40:08 +00:00
description : Replacement defines the replacement path format,
which can include captured variables.
2021-03-03 14:32:04 +00:00
type : string
type : object
retry :
2022-06-24 10:40:08 +00:00
description : 'Retry holds the retry middleware configuration. This
middleware reissues requests a given number of times to a backend
server if that server does not reply. As soon as the server answers,
the middleware stops retrying, regardless of the response status.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/retry/'
2021-03-03 14:32:04 +00:00
properties :
attempts :
2022-06-24 10:40:08 +00:00
description : Attempts defines how many times the request should
be retried.
2021-03-03 14:32:04 +00:00
type : integer
initialInterval :
anyOf :
- type : integer
- type : string
2022-06-24 10:40:08 +00:00
description : InitialInterval defines the first wait time in the
exponential backoff series. The maximum interval is calculated
as twice the initialInterval. If unspecified, requests will
be retried immediately. The value of initialInterval should
be provided in seconds or as a valid duration format, see https://pkg.go.dev/time#ParseDuration.
2021-03-03 14:32:04 +00:00
x-kubernetes-int-or-string : true
type : object
stripPrefix :
2022-06-24 10:40:08 +00:00
description : 'StripPrefix holds the strip prefix middleware configuration.
This middleware removes the specified prefixes from the URL path.
2022-09-14 14:52:03 +00:00
More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/stripprefix/'
2021-03-03 14:32:04 +00:00
properties :
forceSlash :
2022-06-24 10:40:08 +00:00
description : 'ForceSlash ensures that the resulting stripped path
is not the empty string, by replacing it with / when necessary.
Default : true .'
2021-03-03 14:32:04 +00:00
type : boolean
prefixes :
2022-06-24 10:40:08 +00:00
description : Prefixes defines the prefixes to strip from the request
URL.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
stripPrefixRegex :
2022-06-24 10:40:08 +00:00
description : 'StripPrefixRegex holds the strip prefix regex middleware
configuration. This middleware removes the matching prefixes from
2022-09-14 14:52:03 +00:00
the URL path. More info : https://doc.traefik.io/traefik/v2.9/middlewares/http/stripprefixregex/'
2021-03-03 14:32:04 +00:00
properties :
regex :
2022-06-24 10:40:08 +00:00
description : Regex defines the regular expression to match the
path prefix from the request URL.
2021-03-03 14:32:04 +00:00
items :
type : string
type : array
type : object
type : object
required :
- metadata
- spec
type : object
served : true
storage : true
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]