Package org.cdk8s.plus20
Interface ContainerLifecycle
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerLifecycle.Jsii$Proxy
@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-26T09:02:10.444Z") @Stability(Stable) public interface ContainerLifecycle extends software.amazon.jsii.JsiiSerializable
Container lifecycle properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContainerLifecycle.BuilderA builder forContainerLifecyclestatic classContainerLifecycle.Jsii$ProxyAn implementation forContainerLifecycle
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ContainerLifecycle.Builderbuilder()default HandlergetPostStart()This hook is executed immediately after a container is created.default HandlergetPreStop()This hook is called immediately before a container is terminated due to an API request or management event such as a liveness/startup probe failure, preemption, resource contention and others.
-
-
-
Method Detail
-
getPostStart
@Stability(Stable) @Nullable default Handler getPostStart()
This hook is executed immediately after a container is created.However, there is no guarantee that the hook will execute before the container ENTRYPOINT.
Default: - No post start handler.
-
getPreStop
@Stability(Stable) @Nullable default Handler getPreStop()
This hook is called immediately before a container is terminated due to an API request or management event such as a liveness/startup probe failure, preemption, resource contention and others.A call to the PreStop hook fails if the container is already in a terminated or completed state and the hook must complete before the TERM signal to stop the container can be sent. The Pod's termination grace period countdown begins before the PreStop hook is executed, so regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. No parameters are passed to the handler.
Default: - No pre stop handler.
-
builder
@Stability(Stable) static ContainerLifecycle.Builder builder()
- Returns:
- a
ContainerLifecycle.BuilderofContainerLifecycle
-
-