Multi-Container Pods Flashcards

1
Q

What is the purpose of a multi-container pod?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three common patterns for multi-container pods?

A

sidecar
adapter
ambassador

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an example of a sidecar multi-container Pod pattern?

A

logging agent being deployed alongside an application (e.g. web server)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of the adapter multi-container Pod pattern?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of the ambassador pattern?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly