Skip to content

Commit 7f9d3e3

Browse files
author
RA489
committed
Update activeDeadlineSeconds with Pod page
1 parent 2f4a570 commit 7f9d3e3

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
@@ -278,9 +278,11 @@ Init containers have all of the fields of an app container. However, Kubernetes
278278
prohibits `readinessProbe` from being used because init containers cannot
279279
define readiness distinct from completion. This is enforced during validation.
280280

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

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

0 commit comments

Comments
 (0)