Part III. Structural Patterns
Container images and containers are similar to classes and objects in the object-oriented world. Container images are the blueprint from which containers are instantiated. But these containers do not run in isolation; they run in other abstractions called Pods, where they interact with other containers.
The patterns in this category are focused on structuring and organizing containers in a Pod to satisfy different use cases. Pods provide unique runtime capabilities. The forces that affect containers in Pods result in the patterns discussed in the following chapters:
-
Chapter 15, “Init Container”, introduces a lifecycle for initialization-related tasks, decoupled from the main application responsibilities.
-
Chapter 16, “Sidecar”, describes how to extend and enhance the functionality of a preexisting container without changing it.
-
Chapter 17, “Adapter”, takes a heterogeneous system and makes it conform to a consistent unified interface that can be consumed by the outside world.
-
Chapter 18, “Ambassador”, describes a proxy that decouples access to external services.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access