ProbeResponse

data class ProbeResponse(val exec: ExecActionResponse, val failureThreshold: Int, val grpc: GRPCActionResponse, val httpGet: HTTPGetActionResponse, val initialDelaySeconds: Int, val periodSeconds: Int, val successThreshold: Int, val tcpSocket: TCPSocketActionResponse, val timeoutSeconds: Int)

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
constructor(exec: ExecActionResponse, failureThreshold: Int, grpc: GRPCActionResponse, httpGet: HTTPGetActionResponse, initialDelaySeconds: Int, periodSeconds: Int, successThreshold: Int, tcpSocket: TCPSocketActionResponse, timeoutSeconds: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Not supported by Cloud Run.

Link copied to clipboard

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

Link copied to clipboard

GRPCAction specifies an action involving a GRPC port.

Link copied to clipboard

HTTPGet specifies the http request to perform.

Link copied to clipboard

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

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

Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set.

Link copied to clipboard

TCPSocket specifies an action involving a TCP port.

Link copied to clipboard

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.