Skip to content

Kubeedge and edgemesh installation related to K8s cluster CNI #5145

Closed Answered by ravaga
ravaga asked this question in Q&A
Discussion options

You must be logged in to vote

Finally, I followed this procedure and everything is working OK:

  1. In the K8s cluster creation process, only deploy the CNI pods in the original K8s cluster nodes (not KubeEdge nodes running Edgecore).

    • I did it just by modifying the Flannel's Helm chart (specifically its daemonset by adding an affinity field to avoid nodes with both node-role.kubernetes.io/edge and node-role.kubernetes.io/agent labels).
      affinity:
         nodeAffinity:
           requiredDuringSchedulingIgnoredDuringExecution:
             nodeSelectorTerms:
               - matchExpressions:
                 - key: node-role.kubernetes.io/edge
                   operator: DoesNotExist
                 - key: node-role.kubernetes.io/agent

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ravaga
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ravaga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants