Ambient 模式快速入门

本快速入门列出了构建和移除完整 Alauda Service Mesh v2 ambient 模式环境所需的操作,以及示例应用和可观测性堆栈。

每一项都列出了涉及的操作,并链接到详细介绍这些操作的文档。

NOTE

Ambient 模式仍为 Technology Preview 功能。仅在尚未安装 Alauda Service Mesh 的集群上部署。

安装

按以下顺序执行操作:

  1. 安装 Istio ambient 模式 — 安装 Alauda Service Mesh v2 Operator,然后创建 IstioCNI、Istio(使用 ambient 配置文件)和 ZTunnel 资源。请参阅安装 Istio ambient 模式。
  2. 配置监控 — 创建 ServiceMonitor、PodMonitor 和 Telemetry 资源,使控制平面和网格代理公开指标。Kiali 使用这些指标生成其拓扑图、运行状况和指标视图。请参阅指标和 Service Mesh。
  3. 部署 Bookinfo 应用 — 创建 bookinfo 命名空间,使用 istio.io/dataplane-mode 标签将其添加到 ambient 数据平面,部署示例应用,验证流量通过 HBONE 传输,并通过 Kubernetes Gateway API 使用网关公开该应用。请参阅在 ambient 模式下部署 Bookinfo 应用。
  4. 安装 Alauda Distributed Tracing — 安装 Alauda Container Platform Application Observability(之前称为 Alauda Build of OpenTelemetry v2)Operator,然后部署一个由 OpenSearch 支持的 Jaeger v2 实例和一个 OpenTelemetry Collector。请参阅 Installing Alauda Distributed Tracing with OpenSearch。
  5. 为网格配置追踪 — 在 Istio 资源上启用追踪并定义 OpenTelemetry 扩展提供程序,然后在 Telemetry 资源上引用该提供程序并设置采样率。请参阅使用 Service Mesh 配置分布式追踪平台。
  6. 安装 Alauda Build of Kiali — 安装 Alauda Service Mesh Console(之前称为 Alauda Build of Kiali)Operator,创建 Kiali 资源,将其连接到监控数据源,并将其与分布式追踪平台集成。请参阅Alauda Build of Kiali。
  7. 部署 waypoint 代理 — 使用 Kubernetes Gateway API 为 bookinfo 命名空间部署 waypoint 代理,以启用 L7 流量管理、授权和可观测性。请参阅Waypoint 代理。

清理

按以下顺序执行操作,移除上述创建的所有内容:

  1. 卸载 Alauda Build of Kiali — 删除 Kiali 资源,并卸载 Alauda Service Mesh Console(之前称为 Alauda Build of Kiali)Operator。请参阅卸载 Alauda Build of Kiali。
  2. 卸载 Alauda Distributed Tracing — 删除 OpenTelemetry Collector 和 Jaeger v2 实例,并卸载 Alauda Container Platform Application Observability(之前称为 Alauda Build of OpenTelemetry v2)Operator。请参阅 Uninstalling Alauda Distributed Tracing。
  3. 卸载 ambient 模式下的 Alauda Service Mesh — 删除 waypoint 代理 Gateway 资源,从命名空间中移除 ambient 数据平面标签,删除 ZTunnel、Istio 和 IstioCNI 资源,卸载 Alauda Service Mesh v2 Operator,并删除 ztunnel、istio-system 和 istio-cni 命名空间。请参阅卸载 ambient 模式下的 Alauda Service Mesh。
  4. 移除 Bookinfo 应用 — 从 ambient 数据平面中移除 bookinfo 命名空间并将其删除,这也会移除关联的网关资源。请参阅清理。