mirror of https://github.com/k3s-io/k3s
add blank line before list; remove its "manual" bullets
parent
7488154056
commit
8367fc82c5
|
@ -57,9 +57,10 @@ This hook is called before the PostStart handler, when a container has been rest
|
|||
This hook is called immediately before a container is terminated. This event handler is blocking, and must complete before the call to delete the container is sent to the Docker daemon. The SIGTERM notification sent by Docker is also still sent.
|
||||
|
||||
A single parameter named reason is passed to the handler which contains the reason for termination. Currently the valid values for reason are:
|
||||
* ● ```Delete``` - indicating an API call to delete the pod containing this container.
|
||||
* ● ```Health``` - indicating that a health check of the container failed.
|
||||
* ● ```Dependency``` - indicating that a dependency for the container or the pod is missing, and thus, the container needs to be restarted. Examples include, the pod infra container crashing, or persistent disk failing for a container that mounts PD.
|
||||
|
||||
* ```Delete``` - indicating an API call to delete the pod containing this container.
|
||||
* ```Health``` - indicating that a health check of the container failed.
|
||||
* ```Dependency``` - indicating that a dependency for the container or the pod is missing, and thus, the container needs to be restarted. Examples include, the pod infra container crashing, or persistent disk failing for a container that mounts PD.
|
||||
|
||||
Eventually, user specified reasons may be [added to the API](https://github.com/GoogleCloudPlatform/kubernetes/issues/137).
|
||||
|
||||
|
|
Loading…
Reference in New Issue