Kazan v0.11.0 Kazan.Apis.Core.V1.Lifecycle View Source

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.

OpenAPI Definition: io.k8s.api.core.v1.Lifecycle

Properties

  • post_start :: Kazan.Apis.Core.V1.Handler

    • PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info.
  • pre_stop :: Kazan.Apis.Core.V1.Handler

    • PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Kazan.Apis.Core.V1.Lifecycle{
  post_start: Kazan.Apis.Core.V1.Handler.t(),
  pre_stop: Kazan.Apis.Core.V1.Handler.t()
}