Ambient Mode 快速开始
此快速开始列出了在 ambient mode 下构建完整 Alauda Service Mesh v2 环境,然后将其移除所需的操作,包括示例应用和可观测性栈。
每一项都说明了涉及的操作,并链接到详细介绍这些操作的文档。
NOTE
Ambient mode 仍然是一个 Technology Preview 功能。仅在没有现有 Alauda Service Mesh 安装的集群上部署它。
安装
按以下顺序执行操作:
- 安装 Istio ambient mode — 安装 Alauda Service Mesh v2 Operator,然后创建
IstioCNI、Istio(使用ambientprofile)和ZTunnel资源。请参见 Installing Istio ambient mode。 - 配置监控 — 创建
ServiceMonitor、PodMonitor和Telemetry资源,使控制平面和 mesh proxies 暴露指标。运行 Kiali(Istio 的专用控制台)需要监控功能。请参见 Metrics and Service Mesh。 - 部署 Bookinfo application — 创建
bookinfonamespace,将其通过istio.io/dataplane-modelabel 加入 ambient data plane,部署示例应用,并验证流量是否通过HBONE传输。请参见 Deploying the Bookinfo application in ambient mode。 - 安装 Alauda Distributed Tracing — 安装 Alauda Build of OpenTelemetry v2 Operator,然后部署一个由 OpenSearch 支持的 Jaeger v2 实例和一个 OpenTelemetry Collector。请参见 Installing Alauda Distributed Tracing with OpenSearch。
- 为 mesh 配置 tracing — 在
Istioresource 上启用 tracing 并定义 OpenTelemetry extension provider,然后在Telemetryresource 上引用该 provider 并设置采样率。请参见 Configuring distributed tracing platform with Service Mesh。 - 安装 Alauda Build of Kiali — 安装 Alauda Build of Kiali Operator,创建
Kialiresource,将其连接到监控数据源,并将其与 distributed tracing platform 集成。请参见 Alauda Build of Kiali。 - 部署 waypoint proxy — 使用 Kubernetes Gateway API 为
bookinfonamespace 部署一个 waypoint proxy,以启用 L7 流量管理、授权和可观测性。请参见 Waypoint proxies。
清理
按以下顺序执行操作,以移除上面创建的所有内容:
- 卸载 Alauda Build of Kiali — 删除
Kialiresource,并卸载 Alauda Build of Kiali Operator。请参见 Uninstalling Alauda Build of Kiali。 - 卸载 Alauda Distributed Tracing — 删除 OpenTelemetry Collector 和 Jaeger v2 实例,并卸载 Alauda Build of OpenTelemetry v2 Operator。请参见 Uninstalling Alauda Distributed Tracing。
- 以 ambient mode 卸载 Alauda Service Mesh — 删除 waypoint proxy 的
Gatewayresources,从 namespaces 中移除 ambient data plane label,删除ZTunnel、Istio和IstioCNIresources,卸载 Alauda Service Mesh v2 Operator,并删除ztunnel、istio-system和istio-cninamespaces。请参见 Uninstalling Alauda Service Mesh in ambient mode。 - 移除 Bookinfo application — 从 ambient data plane 中移除
bookinfonamespace,并将其删除。请参见 Cleanup。