Fix default value of Healthcheck for ExternalName services
This commit is contained in:
parent
7fc56454ea
commit
b452f37e08
10 changed files with 628 additions and 211 deletions
|
@ -99,45 +99,65 @@ spec:
|
||||||
traffic to.
|
traffic to.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the
|
description: Healthcheck defines health checks for ExternalName
|
||||||
service.
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be
|
||||||
|
sent to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for
|
||||||
|
the health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme
|
||||||
|
for the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -961,44 +981,65 @@ spec:
|
||||||
More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
|
More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname in
|
||||||
|
the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status code
|
||||||
|
of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -2377,44 +2418,65 @@ spec:
|
||||||
description: Mirroring defines the Mirroring service configuration.
|
description: Mirroring defines the Mirroring service configuration.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent to
|
||||||
|
the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname in the
|
||||||
|
Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the health
|
||||||
|
check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the health
|
||||||
|
check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status code
|
||||||
|
of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -2436,44 +2498,65 @@ spec:
|
||||||
description: MirrorService holds the mirror configuration.
|
description: MirrorService holds the mirror configuration.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -2710,44 +2793,65 @@ spec:
|
||||||
traffic to.
|
traffic to.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
|
|
@ -99,45 +99,65 @@ spec:
|
||||||
traffic to.
|
traffic to.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the
|
description: Healthcheck defines health checks for ExternalName
|
||||||
service.
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be
|
||||||
|
sent to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for
|
||||||
|
the health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme
|
||||||
|
for the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
|
|
@ -257,44 +257,65 @@ spec:
|
||||||
More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
|
More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname in
|
||||||
|
the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status code
|
||||||
|
of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
|
|
@ -48,44 +48,65 @@ spec:
|
||||||
description: Mirroring defines the Mirroring service configuration.
|
description: Mirroring defines the Mirroring service configuration.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent to
|
||||||
|
the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname in the
|
||||||
|
Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the health
|
||||||
|
check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the health
|
||||||
|
check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status code
|
||||||
|
of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -107,44 +128,65 @@ spec:
|
||||||
description: MirrorService holds the mirror configuration.
|
description: MirrorService holds the mirror configuration.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -381,44 +423,65 @@ spec:
|
||||||
traffic to.
|
traffic to.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
|
|
@ -99,45 +99,65 @@ spec:
|
||||||
traffic to.
|
traffic to.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the
|
description: Healthcheck defines health checks for ExternalName
|
||||||
service.
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be
|
||||||
|
sent to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for
|
||||||
|
the health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme
|
||||||
|
for the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -961,44 +981,65 @@ spec:
|
||||||
More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
|
More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname in
|
||||||
|
the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status code
|
||||||
|
of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -2377,44 +2418,65 @@ spec:
|
||||||
description: Mirroring defines the Mirroring service configuration.
|
description: Mirroring defines the Mirroring service configuration.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent to
|
||||||
|
the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname in the
|
||||||
|
Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the health
|
||||||
|
check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the health
|
||||||
|
check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status code
|
||||||
|
of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -2436,44 +2498,65 @@ spec:
|
||||||
description: MirrorService holds the mirror configuration.
|
description: MirrorService holds the mirror configuration.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
@ -2710,44 +2793,65 @@ spec:
|
||||||
traffic to.
|
traffic to.
|
||||||
properties:
|
properties:
|
||||||
healthCheck:
|
healthCheck:
|
||||||
description: Healthcheck defines health checks for the service.
|
description: Healthcheck defines health checks for ExternalName
|
||||||
|
services.
|
||||||
properties:
|
properties:
|
||||||
followRedirects:
|
followRedirects:
|
||||||
|
description: |-
|
||||||
|
FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
Default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
headers:
|
headers:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: Headers defines custom headers to be sent
|
||||||
|
to the health check endpoint.
|
||||||
type: object
|
type: object
|
||||||
hostname:
|
hostname:
|
||||||
|
description: Hostname defines the value of hostname
|
||||||
|
in the Host header of the health check request.
|
||||||
type: string
|
type: string
|
||||||
interval:
|
interval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Interval defines the frequency of the health check calls.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 30s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
method:
|
method:
|
||||||
|
description: Method defines the healthcheck method.
|
||||||
type: string
|
type: string
|
||||||
mode:
|
mode:
|
||||||
|
description: |-
|
||||||
|
Mode defines the health check mode.
|
||||||
|
If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
Default: http
|
||||||
type: string
|
type: string
|
||||||
path:
|
path:
|
||||||
|
description: Path defines the server URL path for the
|
||||||
|
health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
port:
|
port:
|
||||||
|
description: Port defines the server URL port for the
|
||||||
|
health check endpoint.
|
||||||
type: integer
|
type: integer
|
||||||
scheme:
|
scheme:
|
||||||
|
description: Scheme replaces the server URL scheme for
|
||||||
|
the health check endpoint.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status defines the expected HTTP status
|
||||||
|
code of the response to the health check request.
|
||||||
type: integer
|
type: integer
|
||||||
timeout:
|
timeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
description: |-
|
description: |-
|
||||||
Duration is a custom type suitable for parsing duration values.
|
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
It supports `time.ParseDuration`-compatible values and suffix-less digits; in
|
Default: 5s
|
||||||
the latter case, seconds are assumed.
|
x-kubernetes-int-or-string: true
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
required:
|
|
||||||
- followRedirects
|
|
||||||
type: object
|
type: object
|
||||||
kind:
|
kind:
|
||||||
description: Kind defines the kind of the Service.
|
description: Kind defines the kind of the Service.
|
||||||
|
|
|
@ -254,7 +254,7 @@ type ServerHealthCheck struct {
|
||||||
Interval ptypes.Duration `json:"interval,omitempty" toml:"interval,omitempty" yaml:"interval,omitempty" export:"true"`
|
Interval ptypes.Duration `json:"interval,omitempty" toml:"interval,omitempty" yaml:"interval,omitempty" export:"true"`
|
||||||
Timeout ptypes.Duration `json:"timeout,omitempty" toml:"timeout,omitempty" yaml:"timeout,omitempty" export:"true"`
|
Timeout ptypes.Duration `json:"timeout,omitempty" toml:"timeout,omitempty" yaml:"timeout,omitempty" export:"true"`
|
||||||
Hostname string `json:"hostname,omitempty" toml:"hostname,omitempty" yaml:"hostname,omitempty"`
|
Hostname string `json:"hostname,omitempty" toml:"hostname,omitempty" yaml:"hostname,omitempty"`
|
||||||
FollowRedirects *bool `json:"followRedirects" toml:"followRedirects" yaml:"followRedirects" export:"true"`
|
FollowRedirects *bool `json:"followRedirects,omitempty" toml:"followRedirects,omitempty" yaml:"followRedirects,omitempty" export:"true"`
|
||||||
Headers map[string]string `json:"headers,omitempty" toml:"headers,omitempty" yaml:"headers,omitempty" export:"true"`
|
Headers map[string]string `json:"headers,omitempty" toml:"headers,omitempty" yaml:"headers,omitempty" export:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,36 @@ func (c configBuilder) buildServersLB(namespace string, svc traefikv1alpha1.Load
|
||||||
lb := &dynamic.ServersLoadBalancer{}
|
lb := &dynamic.ServersLoadBalancer{}
|
||||||
lb.SetDefaults()
|
lb.SetDefaults()
|
||||||
lb.Servers = servers
|
lb.Servers = servers
|
||||||
lb.HealthCheck = svc.HealthCheck
|
|
||||||
|
if svc.HealthCheck != nil {
|
||||||
|
lb.HealthCheck = &dynamic.ServerHealthCheck{
|
||||||
|
Scheme: svc.HealthCheck.Scheme,
|
||||||
|
Path: svc.HealthCheck.Path,
|
||||||
|
Method: svc.HealthCheck.Method,
|
||||||
|
Status: svc.HealthCheck.Status,
|
||||||
|
Port: svc.HealthCheck.Port,
|
||||||
|
Hostname: svc.HealthCheck.Hostname,
|
||||||
|
Headers: svc.HealthCheck.Headers,
|
||||||
|
}
|
||||||
|
lb.HealthCheck.SetDefaults()
|
||||||
|
|
||||||
|
if svc.HealthCheck.FollowRedirects != nil {
|
||||||
|
lb.HealthCheck.FollowRedirects = svc.HealthCheck.FollowRedirects
|
||||||
|
}
|
||||||
|
if svc.HealthCheck.Mode != "http" {
|
||||||
|
lb.HealthCheck.Mode = svc.HealthCheck.Mode
|
||||||
|
}
|
||||||
|
if svc.HealthCheck.Interval != nil {
|
||||||
|
if err := lb.HealthCheck.Interval.Set(svc.HealthCheck.Interval.String()); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if svc.HealthCheck.Timeout != nil {
|
||||||
|
if err := lb.HealthCheck.Timeout.Set(svc.HealthCheck.Timeout.String()); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
conf := svc
|
conf := svc
|
||||||
lb.PassHostHeader = conf.PassHostHeader
|
lb.PassHostHeader = conf.PassHostHeader
|
||||||
|
|
|
@ -2470,7 +2470,9 @@ func TestLoadIngressRoutes(t *testing.T) {
|
||||||
},
|
},
|
||||||
HealthCheck: &dynamic.ServerHealthCheck{
|
HealthCheck: &dynamic.ServerHealthCheck{
|
||||||
Path: "/health",
|
Path: "/health",
|
||||||
|
Timeout: 5000000000,
|
||||||
Interval: 15000000000,
|
Interval: 15000000000,
|
||||||
|
FollowRedirects: Bool(true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2532,7 +2534,9 @@ func TestLoadIngressRoutes(t *testing.T) {
|
||||||
},
|
},
|
||||||
HealthCheck: &dynamic.ServerHealthCheck{
|
HealthCheck: &dynamic.ServerHealthCheck{
|
||||||
Path: "/health1",
|
Path: "/health1",
|
||||||
|
Timeout: 5000000000,
|
||||||
Interval: 15000000000,
|
Interval: 15000000000,
|
||||||
|
FollowRedirects: Bool(true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2549,7 +2553,9 @@ func TestLoadIngressRoutes(t *testing.T) {
|
||||||
},
|
},
|
||||||
HealthCheck: &dynamic.ServerHealthCheck{
|
HealthCheck: &dynamic.ServerHealthCheck{
|
||||||
Path: "/health2",
|
Path: "/health2",
|
||||||
|
Timeout: 5000000000,
|
||||||
Interval: 20000000000,
|
Interval: 20000000000,
|
||||||
|
FollowRedirects: Bool(true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2590,7 +2596,9 @@ func TestLoadIngressRoutes(t *testing.T) {
|
||||||
},
|
},
|
||||||
HealthCheck: &dynamic.ServerHealthCheck{
|
HealthCheck: &dynamic.ServerHealthCheck{
|
||||||
Path: "/health1",
|
Path: "/health1",
|
||||||
|
Timeout: 5000000000,
|
||||||
Interval: 15000000000,
|
Interval: 15000000000,
|
||||||
|
FollowRedirects: Bool(true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -131,8 +131,8 @@ type LoadBalancerSpec struct {
|
||||||
// It allows services to be reachable when Traefik runs externally from the Kubernetes cluster but within the same network of the nodes.
|
// It allows services to be reachable when Traefik runs externally from the Kubernetes cluster but within the same network of the nodes.
|
||||||
// By default, NodePortLB is false.
|
// By default, NodePortLB is false.
|
||||||
NodePortLB bool `json:"nodePortLB,omitempty"`
|
NodePortLB bool `json:"nodePortLB,omitempty"`
|
||||||
// Healthcheck defines health checks for the service.
|
// Healthcheck defines health checks for ExternalName services.
|
||||||
HealthCheck *dynamic.ServerHealthCheck `json:"healthCheck,omitempty"`
|
HealthCheck *ServerHealthCheck `json:"healthCheck,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResponseForwarding struct {
|
type ResponseForwarding struct {
|
||||||
|
@ -144,6 +144,36 @@ type ResponseForwarding struct {
|
||||||
FlushInterval string `json:"flushInterval,omitempty"`
|
FlushInterval string `json:"flushInterval,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ServerHealthCheck struct {
|
||||||
|
// Scheme replaces the server URL scheme for the health check endpoint.
|
||||||
|
Scheme string `json:"scheme,omitempty"`
|
||||||
|
// Mode defines the health check mode.
|
||||||
|
// If defined to grpc, will use the gRPC health check protocol to probe the server.
|
||||||
|
// Default: http
|
||||||
|
Mode string `json:"mode,omitempty"`
|
||||||
|
// Path defines the server URL path for the health check endpoint.
|
||||||
|
Path string `json:"path,omitempty"`
|
||||||
|
// Method defines the healthcheck method.
|
||||||
|
Method string `json:"method,omitempty"`
|
||||||
|
// Status defines the expected HTTP status code of the response to the health check request.
|
||||||
|
Status int `json:"status,omitempty"`
|
||||||
|
// Port defines the server URL port for the health check endpoint.
|
||||||
|
Port int `json:"port,omitempty"`
|
||||||
|
// Interval defines the frequency of the health check calls.
|
||||||
|
// Default: 30s
|
||||||
|
Interval *intstr.IntOrString `json:"interval,omitempty"`
|
||||||
|
// Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy.
|
||||||
|
// Default: 5s
|
||||||
|
Timeout *intstr.IntOrString `json:"timeout,omitempty"`
|
||||||
|
// Hostname defines the value of hostname in the Host header of the health check request.
|
||||||
|
Hostname string `json:"hostname,omitempty"`
|
||||||
|
// FollowRedirects defines whether redirects should be followed during the health check calls.
|
||||||
|
// Default: true
|
||||||
|
FollowRedirects *bool `json:"followRedirects,omitempty"`
|
||||||
|
// Headers defines custom headers to be sent to the health check endpoint.
|
||||||
|
Headers map[string]string `json:"headers,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// Service defines an upstream HTTP service to proxy traffic to.
|
// Service defines an upstream HTTP service to proxy traffic to.
|
||||||
type Service struct {
|
type Service struct {
|
||||||
LoadBalancerSpec `json:",inline"`
|
LoadBalancerSpec `json:",inline"`
|
||||||
|
|
|
@ -584,7 +584,7 @@ func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec) {
|
||||||
}
|
}
|
||||||
if in.HealthCheck != nil {
|
if in.HealthCheck != nil {
|
||||||
in, out := &in.HealthCheck, &out.HealthCheck
|
in, out := &in.HealthCheck, &out.HealthCheck
|
||||||
*out = new(dynamic.ServerHealthCheck)
|
*out = new(ServerHealthCheck)
|
||||||
(*in).DeepCopyInto(*out)
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
@ -1115,6 +1115,44 @@ func (in *RouteUDP) DeepCopy() *RouteUDP {
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
func (in *ServerHealthCheck) DeepCopyInto(out *ServerHealthCheck) {
|
||||||
|
*out = *in
|
||||||
|
if in.Interval != nil {
|
||||||
|
in, out := &in.Interval, &out.Interval
|
||||||
|
*out = new(intstr.IntOrString)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
|
if in.Timeout != nil {
|
||||||
|
in, out := &in.Timeout, &out.Timeout
|
||||||
|
*out = new(intstr.IntOrString)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
|
if in.FollowRedirects != nil {
|
||||||
|
in, out := &in.FollowRedirects, &out.FollowRedirects
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
|
if in.Headers != nil {
|
||||||
|
in, out := &in.Headers, &out.Headers
|
||||||
|
*out = make(map[string]string, len(*in))
|
||||||
|
for key, val := range *in {
|
||||||
|
(*out)[key] = val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerHealthCheck.
|
||||||
|
func (in *ServerHealthCheck) DeepCopy() *ServerHealthCheck {
|
||||||
|
if in == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
out := new(ServerHealthCheck)
|
||||||
|
in.DeepCopyInto(out)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *ServersTransport) DeepCopyInto(out *ServersTransport) {
|
func (in *ServersTransport) DeepCopyInto(out *ServersTransport) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
|
Loading…
Reference in a new issue