Skip to Content
Istio:快速入门
book

Istio:快速入门

by Lee Calcote, Zack Butcher
July 2025
Intermediate to advanced
272 pages
3h 22m
Chinese
O'Reilly Media, Inc.
Content preview from Istio:快速入门

第 4 章 部署 Istio 部署 Istio

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

为了熟悉 Istio 的全部功能,我们需要启动并运行 Istio。 首先,让我们了解其支持的平台,并准备好部署环境。Istio 是一个大型项目,提供多种功能和大量部署选项。在本章中,我们将在本地计算机上进行基本安装,并在网格上部署一些服务。后面的章节将深入探讨 Istio 功能的各个方面。

为 Istio 准备环境

除了 Istio,我们还将部署其示例应用程序 Bookinfo。我们的 Istio 和 Bookinfo 部署将使用大量容器。 我们将使用 Kubernetes 作为管理这些容器的平台。Kubernetes是一个强大的容器编排系统,能够形成集群(节点集合),并在形成集群的主机(节点)群内跨节点调度容器。节点是能够运行安装了 Kubernetes 代理(kubelet)的容器的 Linux 或 Windows 服务器。作为众多待支持的底层平台之一,Kubernetes 是第一个也是支持最好的平台。因此,我们在整个示例中都使用 Kubernetes。需要明确的是,Istio 并不依赖于 Kubernetes。Istio 的设计与平台无关,它支持多种部署平台,包括那些没有容器编排器的平台。

将 Docker 桌面作为安装环境

部署 Kubernetes 有很多选择。 在本书中,我们使用 Docker Desktop 作为便捷的选择。Docker Desktop 是一个易于安装的应用程序,适用于 Mac 或 Windows 环境,能让你从本地机器开始运行 Kubernetes 和 Istio。

要安装 Docker Desktop 并验证是否拥有一个正常运行的 Docker 环境,请在命令行上运行++$ docker run hello-world++ 。一条 "Hello from Docker!"消息确认 Docker 能够拉取镜像、创建新实例,并按预期运行。

注意

我们选择了Docker Desktop作为一个方便的 Kubernetes 平台,它需要手动部署 Istio(这样你就可以看到 Istio 的内核,而无需在 Kubernetes 集群部署上大费周章)。你也可以使用管理平面Meshery,它能快速部署 Istio 和示例应用 Bookinfo。 无论你使用哪种工具部署 Istio,这里使用的示例都能在 Kubernetes 上运行的任何 Istio 环境中运行。有关支持平台的列表,请参阅Istio 文档

截至 2018 年 7 月,适用于 Mac 和 Windows 的 Docker Desktop 包括对运行独立 Kubernetes 服务器和客户端以及 Docker CLI 集成的支持。 我们使用 Docker Desktop 运行 Kubernetes,并将 Kubernetes 作为部署 Istio 的平台。 Docker Desktop 管理的 Kubernetes 服务器在你的 Docker 实例中本地运行,不可配置,是一个单节点 Kubernetes 集群。

Docker Desktop for Mac Kubernetes 集成提供的 Kubernetes CLI 可执行程序位于/usr/local/bin/kubectl。Docker Desktop for Windows Kubernetes 集成提供的 Kubernetes CLI可执行文件 ...

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

TensorFlow.js学习手册

TensorFlow.js学习手册

Gant Laborde
Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty
这才是服务设计

这才是服务设计

Marc Stickdorn, Markus Hormess, Adam Lawrence, Jakob Schneider
金融中的机器学习

金融中的机器学习

Posts & Telecom Press, Jannes Klaas

Publisher Resources

ISBN: 9798341663091