Giter Site home page Giter Site logo

Keadm Join Error about kubeedge HOT 20 OPEN

liyongxian avatar liyongxian commented on May 25, 2024
Keadm Join Error

from kubeedge.

Comments (20)

luomengY avatar luomengY commented on May 25, 2024 2

What I want to express is that the optimization in kubeedge1.16 does not require the installation of CNI plugins when joining edge nodes in keadm. After adding edge nodes, if the pod of the edge application uses a container network, CNI plugins need to be installed again.
image

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

Same problem here.
image

image
My problem is kube-proxy-hqjt4 and weave-net-l6z4g cni plugin are both assigned to edge side.

At edge side,

Mar 04 22:24:56 myarch edgecore[985246]: E0304 22:24:56.340679  985246 kubelet.go:2361] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPl
uginNotReady message:Network plugin returns error: cni plugin not initialized"
Mar 04 22:24:56 myarch edgecore[985246]: E0304 22:24:56.623836  985246 pod_workers.go:965] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"kube-proxy\" w
ith ImagePullBackOff: \"Back-off pulling image \\\"registry.k8s.io/kube-proxy:v1.28.3\\\"\"" pod="kube-system/kube-proxy-hqjt4" podUID=9e3f7ac1-fd37-4bca-b23b-bad7ae336cc3

kube-proxy image can't be properly pulled. I'm trying to figure it out.

from kubeedge.

liyongxian avatar liyongxian commented on May 25, 2024

Same problem here. image

image My problem is kube-proxy-hqjt4 and weave-net-l6z4g cni plugin are both assigned to edge side.

At edge side,

Mar 04 22:24:56 myarch edgecore[985246]: E0304 22:24:56.340679  985246 kubelet.go:2361] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPl
uginNotReady message:Network plugin returns error: cni plugin not initialized"
Mar 04 22:24:56 myarch edgecore[985246]: E0304 22:24:56.623836  985246 pod_workers.go:965] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"kube-proxy\" w
ith ImagePullBackOff: \"Back-off pulling image \\\"registry.k8s.io/kube-proxy:v1.28.3\\\"\"" pod="kube-system/kube-proxy-hqjt4" podUID=9e3f7ac1-fd37-4bca-b23b-bad7ae336cc3

kube-proxy image can't be properly pulled. I'm trying to figure it out.

EdgeNode Does not Deploy Kube-proxy and Cloud CNI, DaemonSet OF kube-proxy and weave-net Add nodeAffinity:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/edge
operator: DoesNotExist

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

Same problem here. image
image My problem is kube-proxy-hqjt4 and weave-net-l6z4g cni plugin are both assigned to edge side.
At edge side,

Mar 04 22:24:56 myarch edgecore[985246]: E0304 22:24:56.340679  985246 kubelet.go:2361] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPl
uginNotReady message:Network plugin returns error: cni plugin not initialized"
Mar 04 22:24:56 myarch edgecore[985246]: E0304 22:24:56.623836  985246 pod_workers.go:965] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"kube-proxy\" w
ith ImagePullBackOff: \"Back-off pulling image \\\"registry.k8s.io/kube-proxy:v1.28.3\\\"\"" pod="kube-system/kube-proxy-hqjt4" podUID=9e3f7ac1-fd37-4bca-b23b-bad7ae336cc3

kube-proxy image can't be properly pulled. I'm trying to figure it out.

EdgeNode Does not Deploy Kube-proxy and Cloud CNI, DaemonSet OF kube-proxy and weave-net Add nodeAffinity: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-role.kubernetes.io/edge operator: DoesNotExist

抱歉没太明白你的意思,你指的是解决方案还是你遇到的问题?

from kubeedge.

liyongxian avatar liyongxian commented on May 25, 2024

你遇到的问题。Kubeedge节点是不需要部署kube-proxy和cni的。

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

你遇到的问题。Kubeedge节点是不需要部署kube-proxy和cni的。

那请问云端和边缘端是如何通信的呢?

from kubeedge.

wbc6080 avatar wbc6080 commented on May 25, 2024

Could you help take a look at this problem? I remember that in v1.16 we have decoupled the dependence on the cni plug-in during installation, but it seems that the cni plug-in is still required here. @luomengY

from kubeedge.

luomengY avatar luomengY commented on May 25, 2024

Could you help take a look at this problem? I remember that in v1.16 we have decoupled the dependence on the cni plug-in during installation, but it seems that the cni plug-in is still required here. @luomengY

The optimization of kubedge1.16.0 is that there is no need to install CNI plugins when joining keadm, but after joining an edge node, the application pod of the edge node still needs to install CNI plugins when using container networks. The log of this issue should be caused by not installing CNI plugins.

from kubeedge.

luomengY avatar luomengY commented on May 25, 2024

和边缘端是如何通信的呢?

However, when deploying edge nodes with keadm join, there is no need to install CNI plugins in advance. If the application runs on an edge node using a container network, CNI plugins need to be installed after keadm join.

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

和边缘端是如何通信的呢?

However, when deploying edge nodes with keadm join, there is no need to install CNI plugins in advance. If the application runs on an edge node using a container network, CNI plugins need to be installed after keadm join.

I didn't install CNI plugin in advance at first.But I came across a bug Network plugin returns error: cni plugin not initialized which result in Not Ready state of my edge node.So I install CNI plugin.
My keadm version is v1.16.0 too.

version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"0114a3e44ddeeff747af370ba58c3ef892400bf7", GitTreeState:"clean", BuildDate:"2024-01-23T02:26:43Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}

from kubeedge.

luomengY avatar luomengY commented on May 25, 2024

I didn't install CNI plugin in advance at first.But I came across a bug Network plugin returns error: cni plugin not initialized which result in Not Ready state of my edge node.So I install CNI plugin.
My keadm version is v1.16.0 too.

The edge node has been successfully deployed, and the application pod on the edge node uses container networks, so CNI plugins need to be installed. Are you still reporting an error after installing CNI plugins?

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

I didn't install CNI plugin in advance at first.But I came across a bug Network plugin returns error: cni plugin not initialized which result in Not Ready state of my edge node.So I install CNI plugin.
My keadm version is v1.16.0 too.

The edge node has been successfully deployed, and the application pod on the edge node uses container networks, so CNI plugins need to be installed. Are you still reporting an error after installing CNI plugins?

What I want to express is that the optimization in kubeedge1.16 does not require the installation of CNI plugins when joining edge nodes in keadm. After adding edge nodes, if the pod of the edge application uses a container network, CNI plugins need to be installed again.我想表达的是,kubeedge1.16 中的优化并不要求在 keadm 中加入边缘节点时安装 CNI 插件。添加边缘节点后,如果边缘应用的 pod 使用容器网络,则需要重新安装 CNI 插件。 image

Yes I get you and thank you for your work and explanation.
Another problem is here.kube-proxy image can't be properly pulled. I am going to change the repository at cloudside to see if it works.Now I'm participating in a school internship. I won't know the result until I return to school in the evening.

from kubeedge.

luomengY avatar luomengY commented on May 25, 2024

Usually, if kube-proxy cannot be run on edge nodes, it may result in a failure to restart edgecore:
image
https://kubeedge.io/docs/setup/install-with-keadm)
Adopting edgemesh at edge nodes( https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/edgemesh-design.md )Forward traffic as SVC.

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

Usually, if kube-proxy cannot be run on edge nodes, it may result in a failure to restart edgecore: imagehttps://kubeedge.io/docs/setup/install-with-keadm) Adopting edgemesh at edge nodes( https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/edgemesh-design.md )Forward traffic as SVC.

Finally edgemesh is deployed on both cloud and edge side.The cloud side is in a Ready state. Thank you for your help!

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

Usually, if kube-proxy cannot be run on edge nodes, it may result in a failure to restart edgecore:通常,如果无法在边缘节点上运行 kube-proxy,可能会导致无法重启 edgecore: imagehttps://kubeedge.io/docs/setup/install-with-keadm)https://kubeedge.io/docs/setup/install-with-keadm) Adopting edgemesh at edge nodes( https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/edgemesh-design.md )Forward traffic as SVC.在边缘节点采用 edgemesh( https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/edgemesh-design.md )作为 SVC 转发流量。

And there is another question.
Just install edgemesh is enough, there is no need to install CNI plugin,right?

from kubeedge.

luomengY avatar luomengY commented on May 25, 2024

Finally edgemesh is deployed on both cloud and edge side.The cloud side is in a Ready state. Thank you for your help!

Before edgemesh 1.15.0, edgemesh could only support traffic proxies at the SVC level. However, in edgemesh 1.15.0, it already supports container network features, that is, edge node CNI features. You can refer to the documentation in edgemesh 1.15.0 to deploy the new version( https://mp.weixin.qq.com/s/KogjCv6hB9UAdG7rDVsb3w )It should be possible to use edgemesh as a CNI plugin at edge nodes.

from kubeedge.

SherlockShemol avatar SherlockShemol commented on May 25, 2024

0,

Thank you!

from kubeedge.

liyongxian avatar liyongxian commented on May 25, 2024

What I want to express is that the optimization in kubeedge1.16 does not require the installation of CNI plugins when joining edge nodes in keadm. After adding edge nodes, if the pod of the edge application uses a container network, CNI plugins need to be installed again. image

Thanks for your reply.
How to deploy cni-plugins on edgenode?
On Cloud,I use Calico.
image

Thanks.

from kubeedge.

luomengY avatar luomengY commented on May 25, 2024

What I want to express is that the optimization in kubeedge1.16 does not require the installation of CNI plugins when joining edge nodes in keadm. After adding edge nodes, if the pod of the edge application uses a container network, CNI plugins need to be installed again. image

Thanks for your reply. How to deploy cni-plugins on edgenode? On Cloud,I use Calico. image

Thanks.

https://release-1-15.docs.kubeedge.io/docs/setup/prerequisites/runtime
image

from kubeedge.

vikarnazbl avatar vikarnazbl commented on May 25, 2024

Facing the same issue. Using helm, edgmesh and spiderpool is getting installed but spiderpool-agent pods are going into crashloopbackoff on the edge nodes. kubectl logs output doesn't show any error msg. Is it due to CNI? How to use edgemesh as CNI?

from kubeedge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.