class K8S::Api::Core::V1::Lifecycle
- K8S::Api::Core::V1::Lifecycle
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.17/api/core/v1/lifecycle.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, post_start : Api::Core::V1::Handler? = nil, pre_stop : Api::Core::V1::Handler? = nil)
Instance Method Summary
- #post_start : Api::Core::V1::Handler?
- #post_start=(post_start : Api::Core::V1::Handler?)
- #pre_stop : Api::Core::V1::Handler?
- #pre_stop=(pre_stop : Api::Core::V1::Handler?)
Constructor Detail
def self.new(*, post_start : Api::Core::V1::Handler? = nil, pre_stop : Api::Core::V1::Handler? = nil)
#