Skip to Content
基础设施即代码,第2版
book

基础设施即代码,第2版

by Kief Morris
May 2025
Beginner to intermediate
430 pages
4h 37m
Chinese
O'Reilly Media, Inc.
Content preview from 基础设施即代码,第2版

第 3 章. 基础设施平台

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

与现代 Cloud 基础设施相关的工具种类繁多。选择哪种技术以及如何将它们组合在一起可能是一个令人不知所措的问题。本章将介绍一个模型,用于思考平台的高层次问题、平台提供的功能以及为提供这些功能而可能组合的基础架构资源。

这不是权威的模型或架构。您将找到自己的方式来描述系统的各个部分。为您使用的每种工具或技术在图表中的正确位置达成一致,并不那么重要,重要的是进行对话。

这种模式的目的是为讨论本书中的概念、实践和方法创造一个环境。我们特别关注的是,无论你使用哪种技术栈、工具或平台,都要确保这些讨论与你相关。因此,该模型定义了分组和术语,后面的章节将使用这些分组和术语来描述如何在 VMware 等虚拟化平台或 AWS 等 IaaS 云上配置服务器。

基础设施系统的各个部分

现代云基础设施中有许多不同的部分,以及许多不同类型的部分。我认为将这些部件分为三个平台层(图 3-1)很有帮助:

应用

应用程序和服务为企业及其用户提供功能。该模型中的其他所有功能都是为了实现这一层而存在的。

应用程序运行时

应用运行时为应用层提供服务和功能。应用运行时平台中的服务和结构示例包括容器集群、无服务器环境、应用服务器、操作系统和数据库。这一层也可称为平台即服务(PaaS)。

基础设施平台

基础设施平台是一系列基础设施资源以及管理这些资源的工具和服务。Cloud 和虚拟化平台提供基础设施资源,包括计算、存储和网络基元。这也被称为基础设施即服务(IaaS)。我将在"基础设施资源 "中详细介绍该层提供的资源

iac2 0301
图 3-1. 系统元素层

本书的前提是使用基础架构平台层来组合基础架构资源,从而创建应用程序运行时层。

第 5 章第二部分中的其他章节介绍了如何使用代码构建基础架构栈。基础设施堆栈是使用 Ansible、CloudFormation、Pulumi 或Terraform 等工具定义和管理在一起的资源集合。

第 10 章第三部分的其他章节介绍了如何使用代码定义和管理应用程序运行时。这些运行时包括服务器、集群和无服务器执行环境。

基础设施平台

基础架构即代码需要一个动态的基础架构平台,您可以使用 API 按需配置和更改资源。图 3-2强调了平台模型中的基础设施平台层。这是云的基本定义。1当我在本书中谈到 "基础设施平台 "时,你可以认为我指的是动态的 IaaS 类型的平台。2

iac2 0302
图 3-2 基础设施平台 基础设施平台是平台模型的基础层

在过去的计算铁器时代,基础设施就是硬件。虚拟化使系统与其运行的硬件脱钩,而云则增加了 API 来管理这些虚拟化资源。3云时代由此开始。

基础设施平台有不同的类型,从全面的公共云到私有云;从商业供应商到开源平台。在本章中,我将概述这些变化,然后介绍它们提供的不同类型的基础架构资源。表 3-1列出了各类云基础设施平台的供应商、产品和工具示例。

表 3-1. 动态基础设施平台示例
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

构建数据集成解决方案

构建数据集成解决方案

Jay Borthen
金融领域的机器学习与数据科学蓝图

金融领域的机器学习与数据科学蓝图

Hariom Tatsat, Sahil Puri, Brad Lookabaugh
可观察性工程

可观察性工程

Charity Majors, Liz Fong-Jones, George Miranda

Publisher Resources

ISBN: 9798341658493