创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
虚拟机: Ubuntu22.04,10C/166G
Kubernetes版本信息
root@k8s-master01:~# kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.16”, GitCommit:“cbb86e0d7f4a049666fac0551e8b02ef3d6c3d9a”, GitTreeState:“clean”, BuildDate:“2024-07-17T01:53:56Z”, GoVersion:“go1.22.5”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.16”, GitCommit:“cbb86e0d7f4a049666fac0551e8b02ef3d6c3d9a”, GitTreeState:“clean”, BuildDate:“2024-07-17T01:44:26Z”, GoVersion:“go1.22.5”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
root@k8s-master01:~# docker version
Client: Docker Engine - Community
Version: 27.1.1
API version: 1.46
Go version: go1.21.12
Git commit: 6312585
Built: Tue Jul 23 19:57:01 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.1.1
API version: 1.46 (minimum version 1.24)
Go version: go1.21.12
Git commit: cc13f95
Built: Tue Jul 23 19:57:01 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.19
GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
runc:
Version: 1.7.19
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
例如:v3.4.1。在线安装。kk安装。
问题是什么
使用KK部署好K8S集群后,开始配置EdgeMesh, 参考文章在 Kubernetes 中部署并使用 KubeEdge (kubesphere.io)
部署了一个nginx容器到edge节点,最终现象如下
容器IP: 10.233.23.240 服务端口: 80 , 外部端口: 30926
master01节点: curl 10.233.23.240:80 无返回信息,提示: curl: (7) Failed to connect to 10.233.23.240 port 800 after 3072 ms: No route to host
worker01节点: curl 10.233.23.240:80 可返回信息
worker02节点: curl 10.233.23.240:80 无返回信息,提示: curl: (7) Failed to connect to 10.233.23.240 port 800 after 3072 ms: No route to host
edge01节点: curl 10.233.23.240:80 可返回信息