本地rancher安装rainbond报错 DNSFailed

请完善如下信息,方便我们协助排查问题

Rainbond版本: release-1.1
操作系统:CentOS 8.3.2011(Py3.7.9)  rancher v2.4.11  Kubernetes 版本: v1.18.14
内核版本:CentOS 8.3.2011(Py3.7.9) rancher v2.4.11  Kubernetes 版本: v1.18.14
环境:(云服务商,虚拟机等)
节点配置:本地
安装类型:本地 rancher  Kubernetes 版本: v1.18.14
如何复现:本地
尝试解决: 
相关截图:
是否重新执行安装:


这个是网络有问题吗?

DNS
原因
DNSFailed
消息
lookup registry.cn-hangzhou.aliyuncs.com on 10.43.0.10:53: server misbehaving

容器网络
原因
ContainerNetworkFailed
消息
can not communicate with rainbond-operator-sentinel-c7wlp(10.42.0.27)

KubernetesStatusFailed
消息
Unhealthy pods found in kube-system: coredns-849545576b-6srd2,coredns-849545576b-sqlxs,coredns-autoscaler-5dcd676cbd-7lfnz,coredns-autoscaler-5dcd676cbd-xv7hn,metrics-server-697746ff48-924d7,metrics-server-697746ff48-tlj79


抄送: @dazuimao1990

k8s 内部的 coredns 是不是工作不正常,去检查它

查看了 并查了网站没找到解决方法
重新 安装一次系统 重新安装docker rancher rainbond-operator 还是一样报错

查看了 DNS 但不知道如何修复

[ERROR] plugin/errors: 2 116426222766941411.4609065571723779135. HINFO: read udp 10.42.0.40:56508->192.168.2.1:53: i/o timeout
[ERROR] plugin/errors: 2 116426222766941411.4609065571723779135. HINFO: read udp 10.42.0.40:50237->114.114.114.114:53: i/o timeout

image
删除一下基础的 失败的

删除 失败的后 重新部署 显示可以加入了 但是依然报错




kubectl -n kube-system edit configmap coredns

宿主机
image

[root@local-server-2 etc]# ifconfig
cali1f6144b7d6b: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet6 fe80::ecee:eeff:feee:eeee  prefixlen 64  scopeid 0x20<link>
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 15220  bytes 11517660 (10.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19879  bytes 12456951 (11.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

cali3452b1f1107: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet6 fe80::ecee:eeff:feee:eeee  prefixlen 64  scopeid 0x20<link>
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 15220  bytes 11304580 (10.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19866  bytes 12455965 (11.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

cali41b937e3e48: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet6 fe80::ecee:eeff:feee:eeee  prefixlen 64  scopeid 0x20<link>
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 338337  bytes 98679930 (94.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 338337  bytes 98679930 (94.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

cali4712cb5f824: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet6 fe80::ecee:eeff:feee:eeee  prefixlen 64  scopeid 0x20<link>
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 15220  bytes 11304580 (10.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19866  bytes 12455965 (11.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

calid00ce241fb4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet6 fe80::ecee:eeff:feee:eeee  prefixlen 64  scopeid 0x20<link>
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 15220  bytes 11304580 (10.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19866  bytes 12455965 (11.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

calif078f709eb7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet6 fe80::ecee:eeff:feee:eeee  prefixlen 64  scopeid 0x20<link>
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 38166  bytes 19090628 (18.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38512  bytes 26295225 (25.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:5bff:fe01:5549  prefixlen 64  scopeid 0x20<link>
        ether 02:42:5b:01:55:49  txqueuelen 0  (Ethernet)
        RX packets 15220  bytes 11304580 (10.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19866  bytes 12455965 (11.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.233  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::a4d2:1c8f:1083:3a51  prefixlen 64  scopeid 0x20<link>
        ether d4:5d:64:46:87:90  txqueuelen 1000  (Ethernet)
        RX packets 38166  bytes 19090628 (18.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38512  bytes 26295225 (25.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

flannel.1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 10.42.0.0  netmask 255.255.255.255  broadcast 0.0.0.0
        inet6 fe80::30b1:4fff:fe93:c4ea  prefixlen 64  scopeid 0x20<link>
        ether 32:b1:4f:93:c4:ea  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 14 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 338373  bytes 98686154 (94.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 338373  bytes 98686154 (94.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vethc17ce79: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::9049:1dff:feca:4588  prefixlen 64  scopeid 0x20<link>
        ether 92:49:1d:ca:45:88  txqueuelen 0  (Ethernet)
        RX packets 15220  bytes 11517660 (10.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19879  bytes 12456951 (11.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0