kubernetes v1.34

JobSpec.template.spec.containers.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
JobSpec.template.spec.containers.lifecycle.preStop fields and descriptions
Field / TypeDescription
ExecAction

Exec specifies a command to execute in the container.

HTTPGetAction

HTTPGet specifies an HTTP GET request to perform.

SleepAction

Sleep represents a duration that the container should sleep.

TCPSocketAction

Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.