我正在运行kubeadm init --pod-network-cidr=10.244.0.0/16
来部署k8s。之后,我运行kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml
来安装Flannel pod网络。
在此之后,我启动了核心dns容器并运行了,但日志显示:
[INFO] plugin/reload: Running configuration MD5 = 4e235fcc3696966e76816bcd9034ebc7
CoreDNS-1.6.5
linux/amd64, go1.13.4, c2fd1b2
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:60266->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:40761->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:50495->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:41244->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:37152->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:35273->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:36979->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:56856->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:59105->172.20.0.1:53: i/o timeout
[ERROR] plugin/errors: 2 2304295940078007789.7023563928002468477. HINFO: read udp 10.244.1.3:42423->172.20.0.1:53: i/o timeout
我在做什么错? 我该如何纠正?
答案 0 :(得分:1)
核心dns连网仅取决于您所使用的法兰绒网络插件。如果法兰绒出现任何问题,则dns pod不能正常启动。尝试通过执行以下命令来安装最新版本的法兰绒,如法兰绒github ReadMe.md
中所述。
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml