Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.51 KB

File metadata and controls

30 lines (23 loc) · 1.51 KB

V1Lifecycle

Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.

Properties

Name Type Description Notes
post_start V1LifecycleHandler [optional]
pre_stop V1LifecycleHandler [optional]
stop_signal str StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name [optional]

Example

from kubernetes.client.models.v1_lifecycle import V1Lifecycle

# TODO update the JSON string below
json = "{}"
# create an instance of V1Lifecycle from a JSON string
v1_lifecycle_instance = V1Lifecycle.from_json(json)
# print the JSON string representation of the object
print(V1Lifecycle.to_json())

# convert the object into a dict
v1_lifecycle_dict = v1_lifecycle_instance.to_dict()
# create an instance of V1Lifecycle from a dict
v1_lifecycle_from_dict = V1Lifecycle.from_dict(v1_lifecycle_dict)

[Back to Model list] [Back to API list] [Back to README]