- OS: Ubuntu 20.04
- ARCH: arm64/amd64
- K8s tools: kubectl、helm
安装 k8s-tools:
git clone https://github.com/cybwan/fsm-demo-rest2grpc.git
cd fsm-demo-rest2grpc
make bin/fsm
或者 Release v1.1.0 · flomesh-io/fsm手动下载安装
make .env
#调整变量
vi .env
export K8S_INGRESS_NODE=fsm-worker #指定为要部署ingress的node
export CTR_REGISTRY_USERNAME=flomesh #按需设定
export CTR_REGISTRY_PASSWORD=flomesh #按需设定
注意:
部署脚本会对K8S_INGRESS_NODE环境变量所指定的node打ingress-ready=true标签,查看当前的node节点:
kubectl get nodes
如果本地没有k8s环境,执行下面指令部署&启动kind集群:
make kind-up
make demo-up
make demo-forward
127.0.0.1调整为ingress所在node的ip
curl http://127.0.0.1:80/client-only
curl http://127.0.0.1:80/client-only?name=tom
curl http://127.0.0.1:80/client-server
curl http://127.0.0.1:80/client-server?name=tom
./scripts/port-forward-fsm-repo.sh
127.0.0.1调整为fsm controller所在node的ip
http://127.0.0.1:6060
./demo/tail-rest2grpc-client.sh
./demo/tail-rest2grpc-client-sidecar.sh
./demo/tail-rest2grpc-server.sh
./demo/tail-rest2grpc-server-sidecar.sh
make demo-reset