prometheus operator v0.93.1

Alertmanager.spec.storage.ephemeral.volumeClaimTemplate.spec.spec.initContainers.lifecycle.preStop

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

4 fields
Alertmanager.spec.storage.ephemeral.volumeClaimTemplate.spec.spec.initContainers.lifecycle.preStop fields and descriptions
Field / TypeDescription
object

Exec specifies a command to execute in the container.

object

HTTPGet specifies an HTTP GET request to perform.

object

Sleep represents a duration that the container should sleep.

object

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.