spacelift workerpool v0.0.41

WorkerPool.spec.pod.initContainer.lifecycle.postStart.httpGet.spec.pod.workerContainer.lifecycle

Actions that the management system should take in response to container lifecycle events. A preStop hook can be used to order shutdown between the containers of a worker pod, for example to hold the gRPC server open until the worker has reported its results. Kubernetes rejects lifecycle hooks on init containers, so this field is only usable on grpcServerContainer and workerContainer. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/

3 fields
WorkerPool.spec.pod.initContainer.lifecycle.postStart.httpGet.spec.pod.workerContainer.lifecycle fields and descriptions
Field / TypeDescription
object

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: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

object

PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

stopSignal
string

StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name