Merge pull request #74160 from mikedanese/updatedoc

clarify PreStop hook intended behavior in doc
This commit is contained in:
Kubernetes Prow Robot
2019-02-21 17:47:28 -08:00
committed by GitHub
5 changed files with 29 additions and 14 deletions

View File

@@ -7725,7 +7725,7 @@
},
"preStop": {
"$ref": "#/definitions/io.k8s.api.core.v1.Handler",
"description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks"
"description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. 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"
}
},
"type": "object"