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

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.
主站蜘蛛池模板: 江安县| 板桥市| 元阳县| 湖州市| 瑞丽市| 昌平区| 吉林省| 乡城县| 兴宁市| 民权县| 铁岭市| 云龙县| 汕尾市| 太湖县| 沽源县| 宁河县| 清丰县| 泽州县| 礼泉县| 孟津县| 大关县| 象山县| 桑日县| 佳木斯市| 泸定县| 巴林右旗| 墨竹工卡县| 定安县| 长白| 慈溪市| 扶绥县| 潞西市| 千阳县| 平南县| 麟游县| 乌什县| 西乡县| 盈江县| 凯里市| 兴海县| 静宁县|