File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
content/en/docs/concepts/workloads/pods Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,13 @@ throughout the lifecycle of the pod and can be started and stopped independently
81
81
main container. Unlike [ init containers] ( /docs/concepts/workloads/pods/init-containers/ ) ,
82
82
sidecar containers support [ probes] ( /docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe ) to control their lifecycle.
83
83
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).
87
91
88
92
## Resource sharing within containers
89
93
You can’t perform that action at this time.
0 commit comments