You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-node/0753-sidecarcontainers.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,25 @@ Check these off as they are completed for the Release Team to track. These check
92
92
93
93
## Summary
94
94
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
0 commit comments