Multi-container Pods
Planted .
A pod can have one or more containers running in it. If it runs multiple containers, there are primarily three different patterns:
- Co-located
- Init
- Sidecar
Co-located
When both containers are dependent on each other and both continue running for the duration of the pod’s lifecycle.
Init
Init containers are run before the app container is started. They run, do their thing and then the main container is started.
Sidecar
This starts before the main app container and continues to run. This is how they are different from init containers. Sidecar containers may be used for monitoring, for example.
Paths into this note
1 note leads here
-
Init containers are a type of multi-container pod.