kubernetes v1.31

PodSpec.initContainers.lifecycle.preStop

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

4 fields
PodSpec.initContainers.lifecycle.preStop fields and descriptions
Field / TypeDescription
ExecAction

Exec specifies the action to take.

HTTPGetAction

HTTPGet specifies the http request to perform.

SleepAction

Sleep represents the duration that the container should sleep before being terminated.

TCPSocketAction

Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.