Skip to content

Commit

Permalink
Merge pull request kubernetes#24327 from seongpyoHong/modify-init-con…
Browse files Browse the repository at this point in the history
…tainers

Modify Understanding init containers section
  • Loading branch information
k8s-ci-robot authored Oct 1, 2020
2 parents 1addb85 + 481c023 commit 5a685dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/concepts/workloads/pods/init-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Init containers are exactly like regular containers, except:
* Init containers always run to completion.
* Each init container must complete successfully before the next one starts.

If a Pod's init container fails, Kubernetes repeatedly restarts the Pod until the init container
succeeds. However, if the Pod has a `restartPolicy` of Never, Kubernetes does not restart the Pod.
If a Pod's init container fails, the kubelet repeatedly restarts that init container until it succeeds.
However, if the Pod has a `restartPolicy` of Never, and an init container fails during startup of that Pod, Kubernetes treats the overall Pod as failed.

To specify an init container for a Pod, add the `initContainers` field into
the Pod specification, as an array of objects of type
Expand Down

0 comments on commit 5a685dd

Please sign in to comment.