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

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.
主站蜘蛛池模板: 浦城县| 台中市| 沅陵县| 西峡县| 林周县| 遂昌县| 都安| 三门县| 宁乡县| 白水县| 石河子市| 涟水县| 文登市| 乡城县| 高雄县| 安吉县| 成安县| 唐山市| 武强县| 泽州县| 历史| 冀州市| 图片| 金堂县| 华容县| 乐清市| 建昌县| 伊吾县| 旬阳县| 万载县| 英吉沙县| 天镇县| 恩平市| 岳普湖县| 临邑县| 额济纳旗| 连平县| 义乌市| 东兰县| 铁岭市| 双鸭山市|