edgemesh官網(wǎng)提供了一個云邊通信的例子
意思是對于跨網(wǎng)段的集群,比如master是公網(wǎng)服務(wù)器,agent是內(nèi)網(wǎng)服務(wù)器。借助edgemesh,master和agent上的pod也能互相通信,更詳細的可以參考這個issue:Demo: cross-edge-cloud communication between pods
我的測試
集群情況
master:阿里云服務(wù)器
agent:校園網(wǎng)內(nèi)網(wǎng)服務(wù)器
kubeedge:1.8.2
edgemesh:手動安裝 kubectl apply -f build/agent/resources,詳情可參考manual installation
部署應(yīng)用:github上edgemesh項目中的examples/cloudzone.yaml&edgezone.yaml
結(jié)果
pod均正常running

master訪問agent上的pod

發(fā)送消息

agent上使用docker logs查看k8s_tcp-echo-container_tcp-echo-edge容器的日志,agent已經(jīng)收到
