Ambient Mode 快速开始

此快速开始列出了在 ambient mode 下构建完整 Alauda Service Mesh v2 环境,然后将其移除所需的操作,包括示例应用和可观测性栈。

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

NOTE

Ambient mode 仍然是一个 Technology Preview 功能。仅在没有现有 Alauda Service Mesh 安装的集群上部署它。

安装

按以下顺序执行操作:

  1. 安装 Istio ambient mode — 安装 Alauda Service Mesh v2 Operator,然后创建 IstioCNIIstio(使用 ambient profile)和 ZTunnel 资源。请参见 Installing Istio ambient mode
  2. 配置监控 — 创建 ServiceMonitorPodMonitorTelemetry 资源,使控制平面和 mesh proxies 暴露指标。运行 Kiali(Istio 的专用控制台)需要监控功能。请参见 Metrics and Service Mesh
  3. 部署 Bookinfo application — 创建 bookinfo namespace,将其通过 istio.io/dataplane-mode label 加入 ambient data plane,部署示例应用,并验证流量是否通过 HBONE 传输。请参见 Deploying the Bookinfo application in ambient mode
  4. 安装 Alauda Distributed Tracing — 安装 Alauda Build of OpenTelemetry v2 Operator,然后部署一个由 OpenSearch 支持的 Jaeger v2 实例和一个 OpenTelemetry Collector。请参见 Installing Alauda Distributed Tracing with OpenSearch
  5. 为 mesh 配置 tracing — 在 Istio resource 上启用 tracing 并定义 OpenTelemetry extension provider,然后在 Telemetry resource 上引用该 provider 并设置采样率。请参见 Configuring distributed tracing platform with Service Mesh
  6. 安装 Alauda Build of Kiali — 安装 Alauda Build of Kiali Operator,创建 Kiali resource,将其连接到监控数据源,并将其与 distributed tracing platform 集成。请参见 Alauda Build of Kiali
  7. 部署 waypoint proxy — 使用 Kubernetes Gateway API 为 bookinfo namespace 部署一个 waypoint proxy,以启用 L7 流量管理、授权和可观测性。请参见 Waypoint proxies

清理

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

  1. 卸载 Alauda Build of Kiali — 删除 Kiali resource,并卸载 Alauda Build of Kiali Operator。请参见 Uninstalling Alauda Build of Kiali
  2. 卸载 Alauda Distributed Tracing — 删除 OpenTelemetry Collector 和 Jaeger v2 实例,并卸载 Alauda Build of OpenTelemetry v2 Operator。请参见 Uninstalling Alauda Distributed Tracing
  3. 以 ambient mode 卸载 Alauda Service Mesh — 删除 waypoint proxy 的 Gateway resources,从 namespaces 中移除 ambient data plane label,删除 ZTunnelIstioIstioCNI resources,卸载 Alauda Service Mesh v2 Operator,并删除 ztunnelistio-systemistio-cni namespaces。请参见 Uninstalling Alauda Service Mesh in ambient mode
  4. 移除 Bookinfo application — 从 ambient data plane 中移除 bookinfo namespace,并将其删除。请参见 Cleanup