Skip to content

Commit 0b52aec

Browse files
authored
Merge pull request #24986 from Cweiping/feature/add_note_for_termnating
Clarify pod phase Terminating
2 parents bda7604 + 9e9bb44 commit 0b52aec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/en/docs/concepts/workloads/pods/pod-lifecycle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ Value | Description
8585
`Failed` | All containers in the Pod have terminated, and at least one container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system.
8686
`Unknown` | For some reason the state of the Pod could not be obtained. This phase typically occurs due to an error in communicating with the node where the Pod should be running.
8787

88+
{{< note >}}
89+
When a Pod is being deleted, it is shown as `Terminating` by some kubectl commands.
90+
This `Terminating` status is not one of the Pod phases.
91+
A Pod is granted a term to terminate gracefully, which defaults to 30 seconds.
92+
You can use the flag `--force` to [terminate a Pod by force](/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination-forced).
93+
{{< /note >}}
94+
8895
If a node dies or is disconnected from the rest of the cluster, Kubernetes
8996
applies a policy for setting the `phase` of all Pods on the lost node to Failed.
9097

0 commit comments

Comments
 (0)