Skip to content

快速入门

使用本地 Kind Kubernetes 集群,在几分钟内开始使用 SP-Istio Agent。

先决条件

一次性安装所有工具

bash
brew install kind kubectl istioctl

步骤 1:设置带有 Istio 的 Kind 集群

创建一个 Kind 集群并安装带有 OpenTelemetry Operator 的 Istio:

bash
curl -L https://raw.githubusercontent.com/softprobe/softprobe/refs/heads/main/scripts/cluster-setup.sh | sh

该脚本将:

  • 使用 Kind 创建一个本地 Kubernetes 集群
  • 安装 Istio 服务网格
  • 安装 OpenTelemetry Operator 用于遥测数据收集

步骤 2:安装 Travel 演示

部署带有 SP-Istio Agent 的演示应用程序:

bash
# 安装 Softprobe Istio WASM 插件 (使用从账户设置下载的 minimal.yaml)
kubectl apply -f minimal.yaml

# 安装演示应用
kubectl apply -f https://raw.githubusercontent.com/softprobe/softprobe/refs/heads/main/examples/travel/apps.yaml

# 暴露演示
sleep 10 && kubectl port-forward -n istio-system svc/istio-ingressgateway 8080:80

步骤 3:试用演示

  1. 在浏览器中打开 http://localhost:8080/
  2. 选择一 城市
  3. 搜索航班
  4. 使用任何测试信息完成预订
  5. 使用虚假信息处理付款

步骤 4:在 Softprobe 仪表板中查看结果

在产生一些流量后:

  1. 前往 Softprobe 仪表板
  2. 在左侧导航菜单中导航到 Travel View
  3. 探索捕获的请求和业务级追踪

演示视频

https://github.com/user-attachments/assets/dc8c68db-dd8b-4da8-a6e2-346adf6ecffb

清理

完成演示后,清理 Kind 集群:

bash
kind delete cluster --name sp-demo-cluster

零代码改动 · 全上下文可见性 · 成本优化