Comments (5)
This article may help you with this question. https://mp.weixin.qq.com/s/P0pG8FoMgZsNcbVargK2gg
from kubeedge.
from kubeedge.
Thank you a lot!
from kubeedge.
I follow the instruction to start quic server only and the edgecore is successfully deployed.But I think the edge side can't communicate with the cloud side because I run kubectl get nodes
there is no edge-side node. and the journal at edge side is
Mar 15 10:35:33 myarch edgecore[2060488]: I0315 10:35:33.293769 2060488 watcher.go:200] get storage revision:66352
Mar 15 10:35:33 myarch edgecore[2060488]: E0315 10:35:33.816299 2060488 controller.go:146] "Failed to ensure lease exists, will retry" err="unmarshal mes
sage to lease failed, err: json: cannot unmarshal array into Go value of type client.LeaseResp" interval="7s"
Mar 15 10:35:37 myarch edgecore[2060488]: E0315 10:35:37.365614 2060488 storage.go:200] [metaserver/reststorage] failed to generate application: connecti
on lost between EdgeCore and CloudCore
Mar 15 10:35:37 myarch edgecore[2060488]: E0315 10:35:37.365662 2060488 storage.go:218] [metaserver/reststorage] failed to get a approved application for
watch(/apis/networking.istio.io/v1alpha3/destinationrules) from cloud application center, connection lost between EdgeCore and CloudCore
Mar 15 10:35:37 myarch edgecore[2060488]: W0315 10:35:37.365686 2060488 watcher.go:93] base storage now only support rev == 0, but get rev == 6036, force
set to 0!
Mar 15 10:35:37 myarch edgecore[2060488]: I0315 10:35:37.365827 2060488 watcher.go:230] start watching, rev:0
Mar 15 10:35:37 myarch edgecore[2060488]: I0315 10:35:37.365871 2060488 imitator.go:176] networking.istio.io/v1alpha3, Resource=destinationrules,,
Mar 15 10:35:37 myarch edgecore[2060488]: I0315 10:35:37.366152 2060488 watcher.go:200] get storage revision:66352
Mar 15 10:35:39 myarch edgecore[2060488]: E0315 10:35:39.225607 2060488 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"StartContaine
r\" for \"upgrade-ipam\" with CrashLoopBackOff: \"back-off 5m0s restarting failed container=upgrade-ipam pod=calico-node-fr2df_kube-system(6b8f5f3a-2ad6-
4593-aa62-475405b51ea2)\"" pod="kube-system/calico-node-fr2df" podUID="6b8f5f3a-2ad6-4593-aa62-475405b51ea2"
Mar 15 10:35:39 myarch edgecore[2060488]: E0315 10:35:39.226405 2060488 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"StartContaine
r\" for \"kube-proxy\" with ImagePullBackOff: \"Back-off pulling image \\\"registry.k8s.io/kube-proxy:v1.28.3\\\"\"" pod="kube-system/kube-proxy-mvhht" p
odUID="12f5d503-0cce-44a9-9d0a-ea783ad0e14e"
Mar 15 10:35:40 myarch edgecore[2060488]: E0315 10:35:40.828021 2060488 controller.go:146] "Failed to ensure lease exists, will retry" err="unmarshal mes
sage to lease failed, err: json: cannot unmarshal array into Go value of type client.LeaseResp" interval="7s"
Mar 15 10:35:41 myarch edgecore[2060488]: E0315 10:35:41.236281 2060488 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc erro
r: code = Unknown desc = failed to destroy network for sandbox \"a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7e9\": plugin type=\"calico
\" failed (delete): failed to find plugin \"calico\" in path [/opt/cni/bin]" podSandboxID="a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7
e9"
Mar 15 10:35:41 myarch edgecore[2060488]: E0315 10:35:41.236343 2060488 kuberuntime_manager.go:1305] "Failed to stop sandbox" podSandboxID={"Type":"conta
inerd","ID":"a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7e9"}
Mar 15 10:35:41 myarch edgecore[2060488]: E0315 10:35:41.236401 2060488 kubelet.go:1851] failed to "KillPodSandbox" for "4b69473d-5044-4fa7-b944-46e11366
11e4" with KillPodSandboxError: "rpc error: code = Unknown desc = failed to destroy network for sandbox \"a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f
7d8640cfad941e7e9\": plugin type=\"calico\" failed (delete): failed to find plugin \"calico\" in path [/opt/cni/bin]"
Mar 15 10:35:41 myarch edgecore[2060488]: E0315 10:35:41.236435 2060488 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbo
x\" for \"4b69473d-5044-4fa7-b944-46e1136611e4\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"a
954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7e9\\\": plugin type=\\\"calico\\\" failed (delete): failed to find plugin \\\"calico\\\" in
path [/opt/cni/bin]\"" pod="kube-system/calico-kube-controllers-558d465845-p52fm" podUID="4b69473d-5044-4fa7-b944-46e1136611e4"
Mar 15 10:35:47 myarch edgecore[2060488]: E0315 10:35:47.840379 2060488 controller.go:146] "Failed to ensure lease exists, will retry" err="unmarshal mes
sage to lease failed, err: json: cannot unmarshal array into Go value of type client.LeaseResp" interval="7s"
Mar 15 10:35:53 myarch edgecore[2060488]: E0315 10:35:53.226135 2060488 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"StartContaine
r\" for \"kube-proxy\" with ImagePullBackOff: \"Back-off pulling image \\\"registry.k8s.io/kube-proxy:v1.28.3\\\"\"" pod="kube-system/kube-proxy-mvhht" p
odUID="12f5d503-0cce-44a9-9d0a-ea783ad0e14e"
Mar 15 10:35:54 myarch edgecore[2060488]: E0315 10:35:54.225585 2060488 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"StartContaine
r\" for \"upgrade-ipam\" with CrashLoopBackOff: \"back-off 5m0s restarting failed container=upgrade-ipam pod=calico-node-fr2df_kube-system(6b8f5f3a-2ad6-
4593-aa62-475405b51ea2)\"" pod="kube-system/calico-node-fr2df" podUID="6b8f5f3a-2ad6-4593-aa62-475405b51ea2"
Mar 15 10:35:54 myarch edgecore[2060488]: E0315 10:35:54.851274 2060488 controller.go:146] "Failed to ensure lease exists, will retry" err="unmarshal mes
sage to lease failed, err: json: cannot unmarshal array into Go value of type client.LeaseResp" interval="7s"
Mar 15 10:35:55 myarch edgecore[2060488]: E0315 10:35:55.235006 2060488 remote_runtime.go:205] "StopPodSandbox from runtime service failed" err="rpc erro
r: code = Unknown desc = failed to destroy network for sandbox \"a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7e9\": plugin type=\"calico
\" failed (delete): failed to find plugin \"calico\" in path [/opt/cni/bin]" podSandboxID="a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7
e9"
Mar 15 10:35:55 myarch edgecore[2060488]: E0315 10:35:55.235066 2060488 kuberuntime_manager.go:1305] "Failed to stop sandbox" podSandboxID={"Type":"conta
inerd","ID":"a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7e9"}
Mar 15 10:35:55 myarch edgecore[2060488]: E0315 10:35:55.235122 2060488 kubelet.go:1851] failed to "KillPodSandbox" for "4b69473d-5044-4fa7-b944-46e11366
11e4" with KillPodSandboxError: "rpc error: code = Unknown desc = failed to destroy network for sandbox \"a954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f
7d8640cfad941e7e9\": plugin type=\"calico\" failed (delete): failed to find plugin \"calico\" in path [/opt/cni/bin]"
Mar 15 10:35:55 myarch edgecore[2060488]: E0315 10:35:55.235158 2060488 pod_workers.go:1294] "Error syncing pod, skipping" err="failed to \"KillPodSandbo
x\" for \"4b69473d-5044-4fa7-b944-46e1136611e4\" with KillPodSandboxError: \"rpc error: code = Unknown desc = failed to destroy network for sandbox \\\"a
954a8c2bcb9a3893571d832ec2e4a24d6859fac490b59f7d8640cfad941e7e9\\\": plugin type=\\\"calico\\\" failed (delete): failed to find plugin \\\"calico\\\" in
path [/opt/cni/bin]\"" pod="kube-system/calico-kube-controllers-558d465845-p52fm" podUID="4b69473d-5044-4fa7-b944-46e1136611e4"
Does this mean I have to use the calico plugin or am I doing something wrong? Can I use edgemesh to replace CNI plugin in quic condition as here said?
from kubeedge.
Problem solved.
I set the wrong iptable rules.
Before
sudo iptables -I DOCKER-USER 1 ! -i docker0 -o docker0 -p tcp -j ACCEPT -d $(minikube ip) --dport 10001
sudo iptables -t nat -A DOCKER ! -i docker0 -p tcp -j DNAT --dport 10001 --to-destination $(minikube ip):10001
After
sudo iptables -I DOCKER-USER 1 ! -i docker0 -o docker0 -p udp -j ACCEPT -d $(minikube ip) --dport 10001
sudo iptables -t nat -A DOCKER ! -i docker0 -p udp -j DNAT --dport 10001 --to-destination $(minikube ip):10001
UDP ,not TCP.
from kubeedge.
Related Issues (20)
- edgecore.yaml改为containerd作为运行时,发现pause镜像拉不到 HOT 1
- Enhancement for container runtime e2e ci test HOT 2
- After enabling HTTPS in metaserver, the edge node status is NotReady
- about keadm cloudcore version HOT 2
- An error occurs when a NodeGroup with the same name is configured in a EdgeApplication HOT 1
- Enhancement for TLS certificate relted code HOT 1
- High avaibility at the edge HOT 1
- keadm join fail while joining to Ali container service HOT 1
- Add FeatureGate support for keadm join command
- admission deployment run error HOT 2
- About multiple cloud-core cluster deploy HOT 2
- Unit test failed because of the token of CodeCov
- Context deadline exceeded when execute keadm init HOT 4
- 1.16.1 join err HOT 14
- image prepull status error
- Add device status reporting information HOT 1
- kubectl exec/log timeout HOT 3
- unexpected return pc for runtime.doInit called from HOT 8
- How do KubeEdge's edge nodes find nearby relay node? HOT 1
- Enhancements to Keadm Tool
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubeedge.