LivenessProbeRequirements Class

Defines liveness probe time requirements for deployments of the Webservice.

To specify autoscaling configuration, you will typically use the deploy_configuration or the update method of the AksWebservice class.

Inheritance
builtins.object
LivenessProbeRequirements

Constructor

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

Parameters

period_seconds
int
Required

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

initial_delay_seconds
int
Required

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

timeout_seconds
int
Required

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

failure_threshold
int
Required

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
Required

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

Variables

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

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.

deserialize(payload_obj)

Parameters

payload_obj
dict
Required

A JSON object to convert to a LivenessProbeRequirements object.

Returns

The LivenessProbeRequirements representation of the provided JSON object.

Return type

serialize

Convert this LivenessProbeRequirements object into a JSON serialized dictionary.

serialize()

Returns

The JSON representation of this LivenessProbeRequirements object.

Return type