官术网_书友最值得收藏!

Structural Patterns

Structural patterns are focused on the composition of building blocks to create higher-level complex resources. In microservice architecture, applications are packaged and deployed as containers. This approach makes it easier to scale applications with less overhead and more isolation. However, this makes it difficult to schedule and run related containers side-by-side, or sequentially in a cluster with thousands of nodes. For instance, if you want to run your frontend and backend containers together in a cluster, you need to find a mechanism so that you can always schedule them to the same nodes. Likewise, if you need to fill in configuration file templates before starting your application, there is a need to ensure that configuration handler containers are running before the application is.

In Kubernetes, containers are the building blocks that are encapsulated in pods. As a container orchestrator, Kubernetes provides built-in functionalities for organizing containers within pods. In this section, the sidecar and initialization structural design patterns for Kubernetes will be explained.

Pods are the smallest deployable resources in Kubernetes, and they consist of one or more containers sharing resources. Pod containers are always scheduled to the same node so that they can share resources such as networking and storage.
Further information about the pod concept is available in the official documentation of Kubernetes: https://kubernetes.io/docs/concepts/workloads/pods/pod.
主站蜘蛛池模板: 全南县| 白玉县| 西乡县| 彩票| 衡水市| 永仁县| 湖口县| 恭城| 涡阳县| 银川市| 金坛市| 潼南县| 盘锦市| 布尔津县| 桦南县| 华坪县| 两当县| 大化| 南宫市| 富锦市| 贵德县| 桑日县| 社会| 绥江县| 广平县| 濮阳县| 宜君县| 安国市| 溧阳市| 奉新县| 西丰县| 弋阳县| 德江县| 金乡县| 兴隆县| 青冈县| 锦州市| 高州市| 深圳市| 余姚市| 盘山县|