edgemesh官網(wǎng)提供了一個(gè)云邊通信的例子
意思是對(duì)于跨網(wǎng)段的集群,比如master是公網(wǎng)服務(wù)器膝但,agent是內(nèi)網(wǎng)服務(wù)器瓶逃。借助edgemesh学密,master和agent上的pod也能互相通信扣讼,更詳細(xì)的可以參考這個(gè)issue:Demo: cross-edge-cloud communication between pods
我的測(cè)試
集群情況
master:阿里云服務(wù)器
agent:校園網(wǎng)內(nèi)網(wǎng)服務(wù)器
kubeedge:1.8.2
edgemesh:手動(dòng)安裝 kubectl apply -f build/agent/resources
捶闸,詳情可參考manual installation
部署應(yīng)用:github上edgemesh項(xiàng)目中的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)收到