快速入门
使用本地 Kind Kubernetes 集群,在几分钟内开始使用 SP-Istio Agent。
先决条件
- 操作系统: macOS (或带有 Docker 的 Linux)
- 所需工具:
- Docker Desktop
- Kind -
brew install kind - kubectl -
brew install kubectl - Istio CLI -
brew install istioctl
一次性安装所有工具
brew install kind kubectl istioctl
步骤 1:设置带有 Istio 的 Kind 集群
创建一个 Kind 集群并安装带有 OpenTelemetry Operator 的 Istio:
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 的演示应用程序:
# 安装 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/ - 选择一 对 城市
- 搜索航班
- 使用任何测试信息完成预订
- 使用虚假信息处理付款