LivenessProbeRequirements Class

Defines liveness probe time requirements for deployments of the Webservice.

LivenessProbeRequirements configuration values values are specified when deploying or updating a Webervice. For example, use the deploy_configuration or update methods of the AksWebservice class, or the create_version, deploy_configuration, or update_version methods of the AksEndpoint class.

Initialize the container resource requirements.

Inheritance
builtins.object
LivenessProbeRequirements

Constructor

LivenessProbeRequirements(period_seconds, initial_delay_seconds, timeout_seconds, success_threshold, failure_threshold)

Parameters

Name Description
period_seconds
Required
int

How often (in seconds) to perform the liveness probe. Defaults to 10 seconds. Minimum value is 1.

initial_delay_seconds
Required
int

The number of seconds after the container has started before liveness probes are initiated.

timeout_seconds
Required
int

The number of seconds after which the liveness probe times out. Defaults to 1 second. Minimum value is 1.

failure_threshold
Required
int

When a Pod starts and the liveness probe fails, Kubernetes will try failureThreshold times before giving up. Defaults to 3. Minimum value is 1.

success_threshold
Required
int

The minimum consecutive successes for the liveness probe to be considered successful after having failed. Defaults to 1. Minimum value is 1.

period_seconds
Required
int

How often (in seconds) to perform the liveness probe. Defaults to 10 seconds. Minimum value is 1.

initial_delay_seconds
Required
int

The number of seconds after the container has started before liveness probes are initiated.

timeout_seconds
Required
int

The number of seconds after which the liveness probe times out. Defaults to 1 second. Minimum value is 1.

failure_threshold
Required
int

When a Pod starts and the liveness probe fails, Kubernetes will try failureThreshold times before giving up. Defaults to 3. Minimum value is 1.

success_threshold
Required
int

The minimum consecutive successes for the liveness probe to be considered successful after having failed. Defaults to 1. Minimum value is 1.

Variables

Name Description
period_seconds
int

How often (in seconds) to perform the liveness probe. Defaults to 10 seconds. Minimum value is 1.

initial_delay_seconds
int

The number of seconds after the container has started before liveness probes are initiated.

timeout_seconds
int

The number of seconds after which the liveness probe times out. Defaults to 1 second. Minimum value is 1.

failure_threshold
int

When a Pod starts and the liveness probe fails, Kubernetes will try failureThreshold times before giving up. Defaults to 3. Minimum value is 1.

success_threshold
int

The minimum consecutive successes for the liveness probe to be considered successful after having failed. Defaults to 1. Minimum value is 1.

Methods

deserialize

Convert a JSON object into a LivenessProbeRequirements object.

serialize

Convert this LivenessProbeRequirements object into a JSON serialized dictionary.

deserialize

Convert a JSON object into a LivenessProbeRequirements object.

static deserialize(payload_obj)

Parameters

Name Description
payload_obj
Required

A JSON object to convert to a LivenessProbeRequirements object.

Returns

Type Description

The LivenessProbeRequirements representation of the provided JSON object.

serialize

Convert this LivenessProbeRequirements object into a JSON serialized dictionary.

serialize()

Returns

Type Description

The JSON representation of this LivenessProbeRequirements object.