快速入门
使用本地 Kind Kubernetes 集群,在几分钟内开始使用 SP-Istio Agent。
先决条件
- 操作系统: macOS (或带有 Docker 的 Linux)
- 所需工具:
- Docker Desktop
- Kind -
brew install kind - kubectl -
brew install kubectl - Istio CLI -
brew install istioctl
一次性安装所有工具
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:试用演示
- 在浏览器中打开
http://localhost:8080/ - 选择一 对 城市
- 搜索航班
- 使用任何测试信息完成预订
- 使用虚假信息处理付款
步骤 4:在 Softprobe 仪表板中查看结果
在产生一些流量后:
- 前往 Softprobe 仪表板
- 在左侧导航菜单中导航到 Travel View
- 探索捕获的请求和业务级追踪
演示视频
https://github.com/user-attachments/assets/dc8c68db-dd8b-4da8-a6e2-346adf6ecffb
清理
完成演示后,清理 Kind 集群:
bash
kind delete cluster --name sp-demo-cluster