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.
Initialize the liveness probe time requirements.
- Inheritance
-
builtins.objectLivenessProbeRequirements
Constructor
LivenessProbeRequirements(period_seconds, initial_delay_seconds, timeout_seconds, success_threshold, failure_threshold)
Parameters
Name | Description |
---|---|
period_seconds
Required
|
How often (in seconds) to perform the liveness probe. Defaults to 10 seconds. Minimum value is 1. |
initial_delay_seconds
Required
|
The number of seconds after the container has started before liveness probes are initiated. |
timeout_seconds
Required
|
Number of seconds after which the liveness probe times out. Defaults to 1 second. Minimum value is 1. |
failure_threshold
Required
|
When a Pod starts and the liveness probe fails, Kubernetes will try
|
success_threshold
Required
|
Minimum consecutive successes for the liveness probe to be considered successful after having failed. Defaults to 1. Minimum value is 1. |
period_seconds
Required
|
How often (in seconds) to perform the liveness probe. Defaults to 10 seconds. Minimum value is 1. |
initial_delay_seconds
Required
|
The number of seconds after the container has started before liveness probes are initiated. |
timeout_seconds
Required
|
Number of seconds after which the liveness probe times out. Defaults to 1 second. Minimum value is 1. |
failure_threshold
Required
|
When a Pod starts and the liveness probe fails, Kubernetes will try
|
success_threshold
Required
|
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
|
How often (in seconds) to perform the liveness probe. Defaults to 10 seconds. Minimum value is 1. |
initial_delay_seconds
|
The number of seconds after the container has started before liveness probes are initiated. |
timeout_seconds
|
Number of seconds after which the liveness probe times out. Defaults to 1 second. Minimum value is 1. |
failure_threshold
|
When a Pod starts and the liveness probe fails, Kubernetes will try |
success_threshold
|
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. |