Skip to content

Commit 98e5b08

Browse files
PRANAV PANDEYTim Bannister
andauthored
Update content/en/docs/concepts/workloads/pods/sidecar-containers.md
Co-authored-by: Tim Bannister <[email protected]>
1 parent d986834 commit 98e5b08

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ throughout the lifecycle of the pod and can be started and stopped independently
8181
main container. Unlike [init containers](/docs/concepts/workloads/pods/init-containers/),
8282
sidecar containers support [probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe) to control their lifecycle.
8383

84-
Sidecar containers can interact directly with the main application containers, sharing
85-
the same network namespace, and filesystem. They work closely together to
86-
provide additional functionality.
84+
Sidecar containers can interact directly with the main application containers, because
85+
like init containers they always share the same network, and can optionally also share
86+
volumes (filesystems).
87+
88+
Init containers stop before the main containers start up, so init containers cannot
89+
exchange messages with the app container in a Pod. Any data passing is one-way
90+
(for example, an init container can put information inside an `emptyDir` volume).
8791

8892
## Resource sharing within containers
8993

0 commit comments

Comments
 (0)