Skip to content

Commit 302743e

Browse files
authored
Merge pull request #28363 from RA489/update_init
Update activeDeadlineSeconds with Pod page
2 parents 34ab657 + 7f9d3e3 commit 302743e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/en/docs/concepts/workloads/pods/init-containers.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,11 @@ Init containers have all of the fields of an app container. However, Kubernetes
280280
prohibits `readinessProbe` from being used because init containers cannot
281281
define readiness distinct from completion. This is enforced during validation.
282282

283-
Use `activeDeadlineSeconds` on the Pod and `livenessProbe` on the container to
284-
prevent init containers from failing forever. The active deadline includes init
285-
containers.
283+
Use `activeDeadlineSeconds` on the Pod to prevent init containers from failing forever.
284+
The active deadline includes init containers.
285+
However it is recommended to use `activeDeadlineSeconds` if user deploy their application
286+
as a Job, because `activeDeadlineSeconds` has an effect even after initContainer finished.
287+
The Pod which is already running correctly would be killed by `activeDeadlineSeconds` if you set.
286288

287289
The name of each app and init container in a Pod must be unique; a
288290
validation error is thrown for any container sharing a name with another.

0 commit comments

Comments
 (0)