kubeedge / kubeedge

Kubernetes Native Edge Computing Framework (project under CNCF)
https://kubeedge.io
Apache License 2.0
6.53k stars 1.68k forks source link

EdgeCore can resolve default namespece services,but can not resolve other namespaces services #5173

Open pangser opened 7 months ago

pangser commented 7 months ago

What happened:

k8s node service can access default or other namespace services by services name,clusterIP edgecore service can not resolve services name belong non-default namespace,but can access it by clusterIP.

How to reproduce it (as minimally and precisely as possible):

create nginx deployment , service in default namespace on k8s nodes create nginx deployment , service in cloudzone namespace on k8s nodes create nginx deployment , service in default namespace on edgecore node create nginx deployment , service in edgezone namespace on edgecore node

Anything else we need to know?: / # nslookup nginx-node-service.edgezone.svc.cluster.local Server: 169.254.96.16 Address 1: 169.254.96.16 edgecore1

nslookup: can't resolve 'nginx-node-service.edgezone.svc.cluster.local' / # nslookup nginx-https.default.svc.cluster.local Server: 169.254.96.16 Address 1: 169.254.96.16 edgecore1

Name: nginx-https.default.svc.cluster.local Address 1: 10.108.180.147 nginx-https.default.svc.cluster.local

I1117 15:17:15.236009 1 tunnel.go:502] [Finder] send relayMap peer: {12D3KooWJLwDttUvXuKL67EAjv9arMau2JhTbVbVSdsVs6ogCK1Q: [/ip4/192.168.207.80/tcp/20006]} I1117 15:18:15.224235 1 tunnel.go:585] [Heartbeat] Already has connection between {12D3KooWJLwDttUvXuKL67EAjv9arMau2JhTbVbVSdsVs6ogCK1Q: [/ip4/192.168.207.80/tcp/20006]} and me I1117 15:18:15.236193 1 tunnel.go:502] [Finder] send relayMap peer: {12D3KooWJLwDttUvXuKL67EAjv9arMau2JhTbVbVSdsVs6ogCK1Q: [/ip4/192.168.207.80/tcp/20006]} I1117 15:19:15.235830 1 tunnel.go:502] [Finder] send relayMap peer: {12D3KooWJLwDttUvXuKL67EAjv9arMau2JhTbVbVSdsVs6ogCK1Q: [/ip4/192.168.207.80/tcp/20006]} I1117 15:20:15.224057 1 tunnel.go:585] [Heartbeat] Already has connection between {12D3KooWJLwDttUvXuKL67EAjv9arMau2JhTbVbVSdsVs6ogCK1Q: [/ip4/192.168.207.80/tcp/20006]} and me I1117 15:20:15.236013 1 tunnel.go:502] [Finder] send relayMap peer: {12D3KooWJLwDttUvXuKL67EAjv9arMau2JhTbVbVSdsVs6ogCK1Q: [/ip4/192.168.207.80/tcp/20006]} I1117 15:20:28.328479 1 log.go:184] [INFO] 172.17.0.3:54750 - 2 "PTR IN 16.96.254.169.in-addr.arpa. udp 44 false 512" NOERROR qr,rd,ra,ad 148 0.002196162s I1117 15:20:28.329006 1 log.go:184] [INFO] 172.17.0.3:33104 - 3 "AAAA IN nginx-node-service.edgezone.svc.cluster.local. udp 63 false 512" NXDOMAIN qr,aa,rd 156 0.000218913s I1117 15:20:28.329329 1 log.go:184] [INFO] 172.17.0.3:42287 - 4 "AAAA IN nginx-node-service.edgezone.svc.cluster.local.edgezone.svc.cluster.local. udp 90 false 512" NXDOMAIN qr,aa,rd 183 0.000132557s I1117 15:20:28.329638 1 log.go:184] [INFO] 172.17.0.3:53576 - 5 "AAAA IN nginx-node-service.edgezone.svc.cluster.local.svc.cluster.local. udp 81 false 512" NXDOMAIN qr,aa,rd 174 0.000138472s I1117 15:20:28.329899 1 log.go:184] [INFO] 172.17.0.3:49995 - 6 "AAAA IN nginx-node-service.edgezone.svc.cluster.local.cluster.local. udp 77 false 512" NXDOMAIN qr,aa,rd 170 0.000105582s I1117 15:20:28.330264 1 log.go:184] [INFO] 172.17.0.3:33104 - 7 "A IN nginx-node-service.edgezone.svc.cluster.local. udp 63 false 512" NXDOMAIN qr,aa,rd 156 0.000116641s I1117 15:20:28.330750 1 log.go:184] [INFO] 172.17.0.3:41380 - 8 "A IN nginx-node-service.edgezone.svc.cluster.local.edgezone.svc.cluster.local. udp 90 false 512" NXDOMAIN qr,aa,rd 183 0.000188407s I1117 15:20:28.331550 1 log.go:184] [INFO] 172.17.0.3:45428 - 9 "A IN nginx-node-service.edgezone.svc.cluster.local.svc.cluster.local. udp 81 false 512" NXDOMAIN qr,aa,rd 174 0.000546327s I1117 15:20:28.333138 1 log.go:184] [INFO] 172.17.0.3:46332 - 10 "A IN nginx-node-service.edgezone.svc.cluster.local.cluster.local. udp 77 false 512" NXDOMAIN qr,aa,rd 170 0.000480145s I1117 15:20:30.295414 1 log.go:184] [INFO] 172.17.0.3:49399 - 2 "PTR IN 16.96.254.169.in-addr.arpa. udp 44 false 512" NOERROR qr,aa,rd,ra 148 0.000204175s I1117 15:20:30.295958 1 log.go:184] [INFO] 172.17.0.3:34301 - 3 "AAAA IN nginx-https.default.svc.cluster.local. udp 55 false 512" NOERROR qr,aa,rd 148 0.000234575s I1117 15:20:30.296281 1 log.go:184] [INFO] 172.17.0.3:38580 - 4 "A IN nginx-https.default.svc.cluster.local. udp 55 false 512" NOERROR qr,aa,rd 108 0.000170874s I1117 15:20:30.296674 1 log.go:184] [INFO] 172.17.0.3:59339 - 5 "PTR IN 147.180.108.10.in-addr.arpa. udp 45 false 512" NOERROR qr,aa,rd 123 0.000120265s

Environment:

Shelley-BaoYue commented 7 months ago

The subproject edgemesh may help.