google::compute-http-health-check

Creates a legacy http health check. Only use this when needed for network load balancing.

Examples

google::compute-http-health-check http-health-check-example
    name: "http-health-check-example"
    check-interval-sec: 30
    description: "Health check description."
    healthy-threshold: 8
    timeout-sec: 29
    unhealthy-threshold: 6
    port: 8080
    request-path: "/myapp"
end

Attributes

Attribute Description
check-interval-sec How often (in seconds) to send a health check. Defaults to 5 seconds.
description An optional description of this resource.
healthy-threshold A so-far unhealthy instance will be marked healthy after this many consecutive successes. Defaults to 2.
host The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
name The name of the http health check. Must be a string 1-63 characters long and the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Valid values satisfy the regex: [[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?]. (Required)
port The TCP port number for the HTTP health check request. Defaults to 80.
request-path The request path of the HTTP health check request. Defaults to /.
timeout-sec The time (in seconds) to wait before claiming failure. Must be less than or equal to check-interval-sec. Defaults to 5 seconds.
unhealthy-threshold A so-far healthy instance will be marked unhealthy after this many consecutive failures. Defaults to 2.

Outputs

Attribute Description
self-link Server-defined URL for the resource.