File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
content/en/docs/concepts/workloads/pods Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -454,10 +454,11 @@ An example flow:
454
454
as terminating (a graceful shutdown duration has been set), the kubelet begins the local Pod
455
455
shutdown process.
456
456
1 . If one of the Pod's containers has defined a ` preStop `
457
- [ hook] ( /docs/concepts/containers/container-lifecycle-hooks ) , the kubelet
458
- runs that hook inside of the container. If the ` preStop ` hook is still running after the
459
- grace period expires, the kubelet requests a small, one-off grace period extension of 2
460
- seconds.
457
+ [ hook] ( /docs/concepts/containers/container-lifecycle-hooks ) and the ` terminationGracePeriodSeconds `
458
+ in the Pod spec is not set to 0, the kubelet runs that hook inside of the container.
459
+ The default ` terminationGracePeriodSeconds ` setting is 30 seconds.
460
+ If the ` preStop ` hook is still running after the grace period expires, the kubelet requests
461
+ a small, one-off grace period extension of 2 seconds.
461
462
{{< note >}}
462
463
If the ` preStop ` hook needs longer to complete than the default grace period allows,
463
464
you must modify ` terminationGracePeriodSeconds ` to suit this.
You can’t perform that action at this time.
0 commit comments