Sidecar 模式快速入门

本快速入门列出了在 sidecar 模式下构建完整的 Alauda Service Mesh v2 环境,随后将其移除所需的操作,同时还包括示例应用和可观测性堆栈。

每个条目都列出了所涉及的操作,并链接到详细说明这些操作的文档。

安装

请按以下顺序执行操作:

  1. 安装 Alauda Service Mesh — 安装 Alauda Service Mesh v2 Operator,然后创建 IstioCNIIstio 资源以部署 Istio 控制平面。请参见 Installing Alauda Service Mesh
  2. 配置监控 — 创建 ServiceMonitorPodMonitorTelemetry 资源,使控制平面和 sidecar proxy 暴露指标。运行 Kiali(Istio 的专用控制台)需要监控。请参见 Metrics and Service Mesh
  3. 部署 Bookinfo Application — 创建 bookinfo 命名空间,为其启用 sidecar 注入,部署示例应用,并通过 gateway 暴露它。请参见 Deploying the Bookinfo Application
  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 资源上启用 tracing 并定义 OpenTelemetry extension provider,然后引用该 provider 并在 Telemetry 资源上设置采样率。请参见 Configuring distributed tracing platform with Service Mesh
  6. 安装 Alauda Build of Kiali — 安装 Alauda Build of Kiali Operator,创建 Kiali 资源,将其连接到监控数据源,并将其与分布式 tracing 平台集成。请参见 Alauda Build of Kiali

清理

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

  1. 卸载 Alauda Build of Kiali — 删除 Kiali 资源并卸载 Alauda Build of Kiali Operator。请参见 Uninstalling Alauda Build of Kiali
  2. 移除 mesh tracing 配置 — 从 Telemetry 资源中移除 tracing 部分,并在 Istio 资源上禁用 tracing。请参见 Removing the Service Mesh tracing configuration
  3. 卸载 Alauda Distributed Tracing — 删除 OpenTelemetry Collector 和 Jaeger v2 实例,并卸载 Alauda Build of OpenTelemetry v2 Operator。请参见 Uninstalling Alauda Distributed Tracing
  4. 移除 Bookinfo Application — 删除 bookinfo 命名空间,这也会移除相关的 gateway 资源。请参见 Removing the Bookinfo Application
  5. 卸载 Alauda Service Mesh — 删除 IstioIstioCNI 资源,卸载 Alauda Service Mesh v2 Operator,并删除 istio-systemistio-cni 命名空间。请参见 Uninstalling Alauda Service Mesh