Skip to content

Commit

Permalink
sidecar: Mention it solves jobs with sidecars
Browse files Browse the repository at this point in the history
This was suggested by Sergey here:
	kubernetes#1913 (comment)

Sadly, that branch is merged and can't click on commit suggestion now.
Credits goes to Sergey anyways :-)

Signed-off-by: Rodrigo Campos <[email protected]>
  • Loading branch information
rata authored and SergeyKanzhelev committed Jan 8, 2021
1 parent 0eacfa6 commit cba40eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions keps/sig-node/0753-sidecarcontainers.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ to add a `lifecycle.type` field to the `container` object in the `pod.spec` to
define if a container is a sidecar container. The only valid value for now is
`sidecar`, but other values can be added in the future if needed.

Pods with sidecar containers only change the behaviour of the startup and
shutdown sequence of a pod: sidecar containers are started before non-sidecars
and stopped after non-sidecars.
Pods with sidecar containers change the behaviour of the startup and shutdown
sequence of a pod: sidecar containers are started before non-sidecars and
stopped after non-sidecars. Sidecar containers are also terminated when all
non-sidecar containers finished.

A pod that has sidecar containers guarantees that non-sidecar containers are
started only after all sidecar containers are started and are in a ready state.
Expand Down

0 comments on commit cba40eb

Please sign in to comment.