Skip to content

Commit 5fac89a

Browse files
authored
Merge pull request #27093 from pacoxu/init-container/behavior
init container image change or container GC will not restart Pod sinc…
2 parents 971412c + ed7c4e7 commit 5fac89a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,16 +313,16 @@ limit, the same as the scheduler.
313313
A Pod can restart, causing re-execution of init containers, for the following
314314
reasons:
315315

316-
* A user updates the Pod specification, causing the init container image to change.
317-
Any changes to the init container image restarts the Pod. App container image
318-
changes only restart the app container.
319316
* The Pod infrastructure container is restarted. This is uncommon and would
320317
have to be done by someone with root access to nodes.
321318
* All containers in a Pod are terminated while `restartPolicy` is set to Always,
322319
forcing a restart, and the init container completion record has been lost due
323320
to garbage collection.
324321

325-
322+
The Pod will not be restarted when the init container image is changed, or the
323+
init container completion record has been lost due to garbage collection. This
324+
applies for Kubernetes v1.20 and later. If you are using an earlier version of
325+
Kubernetes, consult the documentation for the version you are using.
326326

327327
## {{% heading "whatsnext" %}}
328328

0 commit comments

Comments
 (0)