KubeEdge CNI

408 views
Skip to first unread message

R Arjun

unread,
May 16, 2020, 5:10:29 PM5/16/20
to KubeEdge
Dear All,
I would like to know how we can use the same CNI that we use for Kubernetes as the CNI for KubeEdge. I am using Prometheus for monitoring but it is only getting information from the normal Kubernetes worker nodes but unable to collect Information from the edge worker nodes mostly because they are in different networks . I am using Flannel for Kubernetes network. Is there any means to make the KubeEdge nodes use flannel or the same CNI as that of Kubernetes.

Thanks and Regards

黄威

unread,
Jun 3, 2020, 4:54:35 AM6/3/20
to KubeEdge
CNI is available on kubeedge, but you need to make some changes to kube-flannel daemonset
First, you need to ensure that kube-flannel can be scheduled to the edge worker node, you should need to modify some affinity related configuration
Second, when the Pod is running on Node, kubelet will add a set of environment variables for each active Service, but now kubeedge does not support it, so you need to modify the kube-flannel daemonset configuration, add KUBERNETES_SERVICE_HOST, KUBERNETES_SERVICE_PORT environment variables, and confirm You can access the apiserver through this address

在 2020年5月17日星期日 UTC+8上午5:10:29,R Arjun写道:
Reply all
Reply to author
Forward
0 new messages