defaults.healthcheck
How Guv decides a new deployment is healthy before moving traffic. A string is shorthand for an HTTP path.
- Type: string or object
- Since: manifest v1
Accepted forms
- string
- object: the full form, with the fields below
Example
Section titled “Example”defaults: healthcheck: /healthzdefaults: healthcheck: path: /healthz timeout: 10sFields
Section titled “Fields”defaults.healthcheck.type
HTTP GET expecting 2xx/3xx, or a TCP connect.
- Type:
http,tcp - Default:
http - Since: manifest v1
defaults: healthcheck: type: httpdefaults.healthcheck.path
Path for HTTP checks.
- Type: string
- Default:
/ - Pattern:
^/ - Since: manifest v1
defaults: healthcheck: path: /healthzdefaults.healthcheck.port
Port to check; defaults to the service port.
- Type: integer
- Range: 1 to 65535
- Since: manifest v1
defaults: healthcheck: port: 3000timeout
Section titled “timeout”defaults.healthcheck.timeout
Per-check timeout (up to 60s).
- Type: duration
- Since: manifest v1
defaults: healthcheck: timeout: 10sinterval
Section titled “interval”defaults.healthcheck.interval
Time between checks.
- Type: duration
- Since: manifest v1
defaults: healthcheck: interval: 10sstart_timeout
Section titled “start_timeout”defaults.healthcheck.start_timeout
How long a new deployment has to become healthy (up to 15m).
- Type: duration
- Since: manifest v1
defaults: healthcheck: start_timeout: 5mSee also
Section titled “See also”- defaults: all fields of
defaults - guv.yaml reference