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
- 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
Minimum consecutive successes for the liveness probe to be considered successful after having failed. Defaults to 1. Minimum value is 1.
- 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
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.
static deserialize(payload_obj)
Parameters
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for