Skip to content

Commit 85d4c2d

Browse files
authored
Merge pull request #19731 from pyaillet/doc/init-container-precision
doc: add precision on init container start order
2 parents 0854666 + 7b27b3a commit 85d4c2d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ have some advantages for start-up related code:
7171
a mechanism to block or delay app container startup until a set of preconditions are met. Once
7272
preconditions are met, all of the app containers in a Pod can start in parallel.
7373
* Init containers can securely run utilities or custom code that would otherwise make an app
74-
container image less secure. By keeping unnecessary tools separate you can limit the attack
75-
surface of your app container image.
74+
container image less secure. By keeping unnecessary tools separate you can limit the attack
75+
surface of your app container image.
7676

7777

7878
### Examples
@@ -245,8 +245,11 @@ init containers. [What's next](#what-s-next) contains a link to a more detailed
245245

246246
## Detailed behavior
247247

248-
During the startup of a Pod, each init container starts in order, after the
249-
network and volumes are initialized. Each container must exit successfully before
248+
During Pod startup, the kubelet delays running init containers until the networking
249+
and storage are ready. Then the kubelet runs the Pod's init containers in the order
250+
they appear in the Pod's spec.
251+
252+
Each init container must exit successfully before
250253
the next container starts. If a container fails to start due to the runtime or
251254
exits with failure, it is retried according to the Pod `restartPolicy`. However,
252255
if the Pod `restartPolicy` is set to Always, the init containers use

0 commit comments

Comments
 (0)