GoogleCloudRunV2ProbeArgs

data class GoogleCloudRunV2ProbeArgs(val failureThreshold: Output<Int>? = null, val grpc: Output<GoogleCloudRunV2GRPCActionArgs>? = null, val httpGet: Output<GoogleCloudRunV2HTTPGetActionArgs>? = null, val initialDelaySeconds: Output<Int>? = null, val periodSeconds: Output<Int>? = null, val tcpSocket: Output<GoogleCloudRunV2TCPSocketActionArgs>? = null, val timeoutSeconds: Output<Int>? = null) : ConvertibleToJava<GoogleCloudRunV2ProbeArgs>

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

Constructors

Link copied to clipboard
fun GoogleCloudRunV2ProbeArgs(failureThreshold: Output<Int>? = null, grpc: Output<GoogleCloudRunV2GRPCActionArgs>? = null, httpGet: Output<GoogleCloudRunV2HTTPGetActionArgs>? = null, initialDelaySeconds: Output<Int>? = null, periodSeconds: Output<Int>? = null, tcpSocket: Output<GoogleCloudRunV2TCPSocketActionArgs>? = null, timeoutSeconds: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudRunV2ProbeArgs

Properties

Link copied to clipboard
val failureThreshold: Output<Int>? = null

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Link copied to clipboard

GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

Link copied to clipboard

HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.

Link copied to clipboard
val initialDelaySeconds: Output<Int>? = null

Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240.

Link copied to clipboard
val periodSeconds: Output<Int>? = null

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.

Link copied to clipboard

TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

Link copied to clipboard
val timeoutSeconds: Output<Int>? = null

Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.