edgemesh官網提供了一個雲邊通信的例子
意思是對於跨網段的集羣,比如master是公網服務器,agent是內網服務器。藉助edgemesh,master和agent上的pod也能互相通信,更詳細的可以參考這個issue:Demo: cross-edge-cloud communication between pods
我的測試
集羣情況
master:阿里雲服務器
agent:校園網內網服務器
kubeedge:1.8.2
edgemesh:手動安裝 kubectl apply -f build/agent/resources
,詳情可參考manual installation
部署應用:github上edgemesh項目中的examples/cloudzone.yaml&edgezone.yaml
結果
pod均正常running
master訪問agent上的pod
發送消息
agent上使用docker logs
查看k8s_tcp-echo-container_tcp-echo-edge容器的日誌,agent已經收到