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

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.
主站蜘蛛池模板: 广州市| 浦江县| 宜宾县| 高邑县| 万源市| 嘉定区| 黄浦区| 长子县| 神木县| 仁怀市| 利川市| 贵德县| 南岸区| 太保市| 南京市| 滨州市| 平塘县| 玛多县| 抚宁县| 宜都市| 临沧市| 唐海县| 抚顺市| 新沂市| 诸暨市| 永清县| 左云县| 永济市| 保亭| 利津县| 南岸区| 岳西县| 济源市| 安溪县| 张家港市| 霞浦县| 方正县| 凉城县| 延川县| 麻城市| 海原县|