google::compute-health-check¶
Creates a global health check.
Examples¶
google::compute-health-check health-check-example-http
name: "health-check-example-http"
http-health-check
request-path: "/myapp"
end
end
google::compute-health-check health-check-example-https
name: "health-check-example-https"
check-interval-sec: 30
description: "health-check-example-description"
healthy-threshold: 8
timeout-sec: 29
unhealthy-threshold: 6
https-health-check
request-path: "/myapp"
response: "okay"
end
end
google::compute-health-check health-check-example-http2
name: "health-check-example-http2"
check-interval-sec: 30
description: "health-check-example-description"
healthy-threshold: 8
timeout-sec: 29
unhealthy-threshold: 6
http2-health-check
proxy-header: "PROXY_V1"
request-path: "/myapp"
response: "okay"
end
end
google::compute-health-check health-check-example-tcp
name: "health-check-example-tcp"
check-interval-sec: 30
description: "health-check-example-description"
healthy-threshold: 8
timeout-sec: 29
unhealthy-threshold: 6
tcp-health-check
proxy-header: "PROXY_V1"
request-path: "/myapp"
response: "okay"
end
end
google::compute-health-check health-check-example-ssl
name: "health-check-example-ssl"
check-interval-sec: 30
description: "health-check-example-description"
healthy-threshold: 8
timeout-sec: 29
unhealthy-threshold: 6
ssl-health-check
port: 501
port-name: "custom-port"
proxy-header: "PROXY_V1"
request: "/myapp"
response: "okay"
end
end