Multi-Container Pods Flashcards
What is the purpose of a multi-container pod?
It allows tightly-coupled services, e.g. logging agents, to have the same lifecycle as the application they serve.
They share the same network space (addressable via localhost) and storage volumes
What are the three common patterns for multi-container pods?
sidecar
adapter
ambassador
What is an example of a sidecar multi-container Pod pattern?
logging agent being deployed alongside an application (e.g. web server)
What is the purpose of the adapter multi-container Pod pattern?
The adapter is a sidecar that converts messages or data into a common format (it ‘adapts’ the data) for use in another service hosted outside the pod.
What is the purpose of the ambassador pattern?
The ambassador is a sidecar which contains logic to adapt the Pod (e.g. proxying requests) to different contexts (e.g. dev, test, prod) that a Pod may be deployed within.