第二章 基础模式

艾因技术K8s翻译大约 2 分钟

第二章 基础模式

2. Foundational Patterns

2. 基础模式

Foundational patterns describe a number of fundamental principles that containerized applications must comply with in order to become good cloud-native citizens. Adhering to these principles will help ensure your applications are suitable for automation in cloud-native platforms such as Kubernetes.

基础模式描述了容器化应用程序必须遵守的一些基本原则,以便成为优秀的云原生公民。遵循这些原则将有助于确保你的应用程序适用于Kubernetes等云原生平台的自动化。

The patterns described in the following chapters represent the foundational building blocks of distributed container-based Kubernetes-native applications:

以下章节中描述的模式代表了基于容器的分布式Kubernetes本机应用程序的基本构建块:

  • Chapter 2.1, Predictable Demands, explains why every container should declare its resource profile and stay confined to the indicated resource requirements.
  • 第2.1章,可预测的需求,解释了为什么每个容器都应该声明其资源配置文件,并仅限于指定的资源需求。
  • Chapter 2.2, Declarative Deployment, shows the different application deployment strategies that can be performed in a declarative way.
  • 第2.2章,声明式部署,展示了可以以声明方式执行的不同应用程序部署策略。
  • Chapter 2.3, Health Probe, dictates that every container should implement specific APIs to help the platform observe and manage the application in the healthiest way possible.
  • 第2.3章,健康探测,规定每个容器都应该实现特定的API,以帮助平台以最健康的方式观察和管理应用程序。
  • Chapter 2.4, Managed Lifecycle, describes why a container should have a way to read the events coming from the platform and conform by reacting to those events.
  • 第2.4章,托管生命周期,描述了为什么容器应该有一种方法来读取来自平台的事件,并通过对这些事件作出反应来进行遵从。
  • Chapter 2.5, Automated Placement, introduces a pattern for distributing containers in a Kubernetes multinode cluster.
  • 第2.6章,自动放置,介绍了在Kubernetes多节点集群中分发容器的模式。