Skip to content

Commit 1e879b4

Browse files
committed
sidecar: Improve summary
Reviewed-by: Joseph-Irving <[email protected]> Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 494e7b9 commit 1e879b4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

keps/sig-node/0753-sidecarcontainers.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,25 @@ Check these off as they are completed for the Release Team to track. These check
9292

9393
## Summary
9494

95-
To solve the problem of container lifecycle dependency we can create a new class of container: a "sidecar container" that behaves primarily like a normal container but is handled differently during termination and startup.
95+
This KEP adds the notion of sidecar containers to Kubernetes. This KEP proses
96+
to add a `type` field to the `containers` array in the `pod.spec` to define if a
97+
container is a sidecar container. The only valid value for now is `sidecar`, but
98+
other values can be added in the future if needed.
99+
100+
Pods with sidecar containers only change the behavior of the startup and
101+
shutdown sequence of a pod: sidecar container are started before non-sidecars
102+
and stopped after non-sidecars.
103+
104+
A pod that has sidecar containers guarantees that non-sidecar containers are
105+
started only after sidecar containers are started and are in a ready state.
106+
Furthermore, we propose to treat sidecar containers as regular (non-sidecar)
107+
containers as much as possible all over the code, except for the mentioned
108+
special startup and shutdown behavior. The rest of the pod lifecycle (regarding
109+
restarts, etc.) remains unchanged, this KEP aims to modify only the startup and
110+
shutdown behavior.
111+
112+
If a pod doesn't have a sidecar container, the behavior is completely unchanged
113+
by this proposal.
96114

97115
## Prerequisites
98116

0 commit comments

Comments
 (0)