Skip to content

Commit

Permalink
modify terminated-pod-gc-threshold explanation (#15272) (#17183)
Browse files Browse the repository at this point in the history
* modify terminated-pod-gc-threshold explanation (#15272)

* modify terminated-pod-gc-threshold explanation (#15272)
  • Loading branch information
hase1128 authored and k8s-ci-robot committed Nov 5, 2019
1 parent 733f376 commit 6b261c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions content/en/docs/concepts/workloads/pods/pod-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,11 @@ once bound to a node, a Pod will never be rebound to another node.

## Pod lifetime

In general, Pods do not disappear until someone destroys them. This might be a
human or a controller. The only exception to
this rule is that Pods with a `phase` of Succeeded or Failed for more than some
duration (determined by `terminated-pod-gc-threshold` in the master) will expire and be automatically destroyed.
In general, Pods remain until a human or controller process explicitly removes them.
The control plane cleans up terminated Pods (with a phase of `Succeeded` or
`Failed`), when the number of Pods exceeds the configured threshold
(determined by `terminated-pod-gc-threshold` in the kube-controller-manager).
This avoids a resource leak as Pods are created and terminated over time.

Three types of controllers are available:

Expand Down

0 comments on commit 6b261c7

Please sign in to comment.